home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1998-06-22 | 34.3 KB | [TEXT/MSET] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: cg5
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Jun 22 11:04:04 1998, modified Mon Jun 22 11:04:04 1998, creator 'MSET', type ASCII, 34461 bytes "cg5" , at 0x871d 381 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
0%
| TrID
| Sybase iAnywhere database files
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MSET] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 03 63 67 35 00 00 00 | 00 00 00 00 00 00 00 00 |..cg5...|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 53 45 | 54 00 00 00 00 00 00 00 |.TEXTMSE|T.......|
|00000050| 00 00 00 00 00 86 9d 00 | 00 01 7d b1 b4 22 e4 b1 |........|..}.."..|
|00000060| b4 22 e4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |."......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 00 9f 00 00 |........|........|
|00000080| 6d 61 72 6b 65 72 20 6d | 5f 5f 63 67 35 0d 0d 50 |marker m|__cg5..P|
|00000090| 50 43 3f 0d 5b 49 46 5d | 0d 66 61 6c 73 65 09 63 |PC?.[IF]|.false.c|
|000000a0| 6f 6e 73 74 61 6e 74 09 | 64 65 62 75 67 3f 0d 5b |onstant.|debug?.[|
|000000b0| 45 4c 53 45 5d 0d 66 61 | 6c 73 65 09 63 6f 6e 73 |ELSE].fa|lse.cons|
|000000c0| 74 61 6e 74 09 64 65 62 | 75 67 3f 0d 5b 54 48 45 |tant.deb|ug?.[THE|
|000000d0| 4e 5d 0d 0d 0d 30 09 76 | 61 6c 75 65 09 64 69 73 |N]...0.v|alue.dis|
|000000e0| 74 61 6e 63 65 5f 63 6f | 64 65 5f 6d 6f 76 65 64 |tance_co|de_moved|
|000000f0| 0d 30 09 76 61 6c 75 65 | 09 5e 66 77 64 0d 30 09 |.0.value|.^fwd.0.|
|00000100| 76 61 6c 75 65 09 6c 61 | 73 74 5f 63 6f 6c 6f 6e |value.la|st_colon|
|00000110| 5f 64 65 66 6e 0d 30 09 | 76 61 6c 75 65 09 66 70 |_defn.0.|value.fp|
|00000120| 5f 66 6c 61 67 73 3f 0d | 0d 0d 66 6f 72 77 61 72 |_flags?.|..forwar|
|00000130| 64 20 20 50 50 43 5f 4f | 42 4a 0d 0d 50 50 43 3f |d PPC_O|BJ..PPC?|
|00000140| 20 6e 6f 74 0d 5b 49 46 | 5d 0d 66 6f 72 77 61 72 | not.[IF|].forwar|
|00000150| 64 20 20 43 41 4c 4c 5f | 48 09 09 09 5c 20 69 6e |d CALL_|H...\ in|
|00000160| 20 50 50 43 20 6d 6f 64 | 65 2c 20 74 68 65 73 65 | PPC mod|e, these|
|00000170| 20 61 72 65 20 61 6c 72 | 65 61 64 79 20 66 6f 72 | are alr|eady for|
|00000180| 77 61 72 64 20 64 65 66 | 69 6e 65 64 20 69 6e 0d |ward def|ined in.|
|00000190| 66 6f 72 77 61 72 64 20 | 20 4c 49 54 5f 41 44 44 |forward | LIT_ADD|
|000001a0| 52 09 09 5c 20 20 71 70 | 43 6c 61 73 73 2c 20 77 |R..\ qp|Class, w|
|000001b0| 68 69 63 68 20 67 65 74 | 73 20 6c 6f 61 64 65 64 |hich get|s loaded|
|000001c0| 20 62 65 66 6f 72 65 20 | 74 68 65 20 63 67 78 20 | before |the cgx |
|000001d0| 66 69 6c 65 73 2e 0d 5b | 54 48 45 4e 5d 0d 0d 5c |files..[|THEN]..\|
|000001e0| 20 6f 6e 20 74 68 65 20 | 50 50 43 2c 20 6e 6f 72 | on the |PPC, nor|
|000001f0| 6d 61 6c 20 61 6c 69 67 | 6e 6d 65 6e 74 20 69 73 |mal alig|nment is|
|00000200| 20 34 2d 62 79 74 65 3a | 0d 0d 3a 20 41 4c 49 47 | 4-byte:|..: ALIG|
|00000210| 4e 09 09 09 61 6c 69 67 | 6e 34 20 20 3b 0d 0d 50 |N...alig|n4 ;..P|
|00000220| 50 43 3f 0d 5b 49 46 5d | 0d 3a 20 43 4f 44 45 5f |PC?.[IF]|.: CODE_|
|00000230| 41 4c 49 47 4e 09 43 44 | 50 20 23 61 6c 69 67 6e |ALIGN.CD|P #align|
|00000240| 34 20 2d 3e 20 43 44 50 | 20 20 3b 0d 5b 45 4c 53 |4 -> CDP| ;.[ELS|
|00000250| 45 5d 0d 5c 20 43 4f 44 | 45 5f 41 4c 49 47 4e 20 |E].\ COD|E_ALIGN |
|00000260| 69 73 20 69 6e 20 70 70 | 63 4f 6e 36 38 6b 0d 5b |is in pp|cOn68k.[|
|00000270| 54 48 45 4e 5d 0d 0d 0d | 50 50 43 3f 0d 5b 49 46 |THEN]...|PPC?.[IF|
|00000280| 5d 0d 5c 20 77 65 20 6e | 65 65 64 20 4c 49 54 45 |].\ we n|eed LITE|
|00000290| 52 41 4c 20 65 61 72 6c | 79 20 69 6e 20 74 68 69 |RAL earl|y in thi|
|000002a0| 73 20 66 69 6c 65 2c 20 | 73 69 6e 63 65 20 69 6e |s file, |since in|
|000002b0| 20 61 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 | a numbe|r of the|
|000002c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 0d 5c 20 20 77 6f | followi|ng.\ wo|
|000002d0| 72 64 73 20 77 65 20 75 | 73 65 20 20 70 6f 73 74 |rds we u|se post|
|000002e0| 70 6f 6e 65 20 6c 69 74 | 65 72 61 6c 20 20 69 6e |pone lit|eral in|
|000002f0| 20 77 68 69 63 68 20 77 | 65 20 72 65 61 6c 6c 79 | which w|e really|
|00000300| 20 64 6f 20 77 61 6e 74 | 20 74 6f 20 63 6f 6d 70 | do want| to comp|
|00000310| 69 6c 65 0d 5c 20 20 61 | 20 63 61 6c 6c 20 74 6f |ile.\ a| call to|
|00000320| 20 74 68 69 73 20 50 50 | 43 20 76 65 72 73 69 6f | this PP|C versio|
|00000330| 6e 20 6f 66 20 6c 69 74 | 65 72 61 6c 2e 0d 0d 0d |n of lit|eral....|
|00000340| 3a 20 4c 49 54 45 52 41 | 4c 09 5c 20 28 20 6e 20 |: LITERA|L.\ ( n |
|00000350| 2d 2d 20 29 09 43 6f 6d | 70 69 6c 65 73 20 61 20 |-- ).Com|piles a |
|00000360| 66 65 74 63 68 20 6f 66 | 20 6e 20 61 73 20 61 20 |fetch of| n as a |
|00000370| 6c 69 74 65 72 61 6c 2e | 0d 09 5c 20 57 65 20 6a |literal.|..\ We j|
|00000380| 75 73 74 20 70 75 73 68 | 20 6f 6e 74 6f 20 63 73 |ust push| onto cs|
|00000390| 74 6b 2c 20 68 6f 70 69 | 6e 67 20 77 65 20 63 61 |tk, hopi|ng we ca|
|000003a0| 6e 20 63 6f 6d 62 69 6e | 65 20 77 69 74 68 20 61 |n combin|e with a|
|000003b0| 6e 0d 09 5c 20 20 6f 70 | 20 61 74 20 72 75 6e 20 |n..\ op| at run |
|000003c0| 74 69 6d 65 2e 20 20 49 | 66 20 64 70 6c 20 69 73 |time. I|f dpl is|
|000003d0| 20 70 6f 73 69 74 69 76 | 65 2c 20 6e 20 69 73 20 | positiv|e, n is |
|000003e0| 61 20 64 6f 75 62 6c 65 | 20 6e 75 6d 62 65 72 2e |a double| number.|
|000003f0| 0d 0d 09 63 6c 65 61 72 | 3a 20 6f 70 6e 64 31 0d |...clear|: opnd1.|
|00000400| 09 64 70 6c 20 30 3e 3d | 0d 09 49 46 09 73 77 61 |.dpl 0>=|..IF.swa|
|00000410| 70 20 20 3e 6c 69 74 3a | 20 6f 70 6e 64 31 0d 09 |p >lit:| opnd1..|
|00000420| 09 6f 70 6e 64 31 20 70 | 75 73 68 0d 09 54 48 45 |.opnd1 p|ush..THE|
|00000430| 4e 0d 09 3e 6c 69 74 3a | 20 6f 70 6e 64 31 0d 09 |N..>lit:| opnd1..|
|00000440| 6f 70 6e 64 31 20 70 75 | 73 68 20 20 3b 09 09 09 |opnd1 pu|sh ;...|
|00000450| 09 69 6d 6d 65 64 69 61 | 74 65 0d 0d 5b 54 48 45 |.immedia|te..[THE|
|00000460| 4e 5d 0d 0d 0d 0d 5c 09 | 09 3d 3d 3d 3d 3d 3d 3d |N]....\.|.=======|
|00000470| 3d 3d 20 20 46 49 4e 41 | 4c 49 5a 41 54 49 4f 4e |== FINA|LIZATION|
|00000480| 20 4f 46 20 44 45 46 49 | 4e 49 54 49 4f 4e 53 20 | OF DEFI|NITIONS |
|00000490| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0d 28 2a | =======|====..(*|
|000004a0| 09 41 74 20 73 65 6d 69 | 63 6f 6c 6f 6e 20 74 69 |.At semi|colon ti|
|000004b0| 6d 65 2c 20 74 68 65 72 | 65 20 61 72 65 20 61 20 |me, ther|e are a |
|000004c0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 69 6e 67 73 |number o|f things|
|000004d0| 20 77 65 20 68 61 76 65 | 20 74 6f 20 66 69 78 20 | we have| to fix |
|000004e0| 75 70 20 69 6e 0d 09 74 | 68 65 20 64 65 66 69 6e |up in..t|he defin|
|000004f0| 69 74 69 6f 6e 20 77 65 | 20 6a 75 73 74 20 63 6f |ition we| just co|
|00000500| 6d 70 69 6c 65 64 2e 20 | 20 4f 6e 63 65 20 77 65 |mpiled. | Once we|
|00000510| 27 76 65 20 63 6f 6d 70 | 69 6c 65 64 20 74 68 65 |'ve comp|iled the|
|00000520| 20 70 72 6f 6c 6f 67 20 | 61 6e 64 0d 09 65 70 69 | prolog |and..epi|
|00000530| 6c 6f 67 20 61 6e 64 20 | 61 64 64 65 64 20 74 68 |log and |added th|
|00000540| 65 20 63 6f 6e 73 74 5f | 64 61 74 61 2c 20 69 66 |e const_|data, if|
|00000550| 20 61 6e 79 2c 20 74 68 | 65 20 66 69 6e 61 6c 20 | any, th|e final |
|00000560| 6c 6f 63 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |location| of the |
|00000570| 0d 09 63 6f 64 65 20 69 | 73 20 6b 6e 6f 77 6e 2e |..code i|s known.|
|00000580| 20 20 57 65 20 63 61 6e | 20 74 68 65 6e 20 22 66 | We can| then "f|
|00000590| 69 6e 61 6c 69 7a 65 22 | 20 74 68 65 20 64 65 66 |inalize"| the def|
|000005a0| 69 6e 69 74 69 6f 6e 2e | 20 20 54 68 69 73 20 69 |inition.| This i|
|000005b0| 6e 63 6c 75 64 65 73 0d | 09 72 65 73 6f 6c 76 69 |ncludes.|.resolvi|
|000005c0| 6e 67 20 61 6e 79 20 45 | 58 49 54 73 20 61 6e 64 |ng any E|XITs and|
|000005d0| 20 4c 45 41 56 45 73 20 | 61 6e 64 20 70 75 74 74 | LEAVEs |and putt|
|000005e0| 69 6e 67 20 69 6e 20 74 | 68 65 20 63 6f 72 72 65 |ing in t|he corre|
|000005f0| 63 74 20 6f 66 66 73 65 | 74 73 20 66 6f 72 0d 09 |ct offse|ts for..|
|00000600| 63 61 6c 6c 73 20 74 6f | 20 6f 74 68 65 72 20 77 |calls to| other w|
|00000610| 6f 72 64 73 20 28 74 68 | 65 73 65 20 63 6f 75 6c |ords (th|ese coul|
|00000620| 64 6e 27 74 20 62 65 20 | 64 65 74 65 72 6d 69 6e |dn't be |determin|
|00000630| 65 64 20 62 65 66 6f 72 | 65 20 74 68 65 20 63 6f |ed befor|e the co|
|00000640| 64 65 27 73 0d 09 66 69 | 6e 61 6c 20 6c 6f 63 61 |de's..fi|nal loca|
|00000650| 74 69 6f 6e 20 77 61 73 | 20 64 65 74 65 72 6d 69 |tion was| determi|
|00000660| 6e 65 64 29 2e 0d 09 0d | 09 54 6f 20 68 61 6e 64 |ned)....|.To hand|
|00000670| 6c 65 20 74 68 65 73 65 | 20 76 61 72 69 6f 75 73 |le these| various|
|00000680| 20 74 68 69 6e 67 73 2c | 20 77 65 20 75 73 65 20 | things,| we use |
|00000690| 73 6f 6d 65 20 70 73 65 | 75 64 6f 2d 69 6e 73 74 |some pse|udo-inst|
|000006a0| 72 75 63 74 69 6f 6e 73 | 20 74 6f 20 73 74 61 6e |ructions| to stan|
|000006b0| 64 20 69 6e 0d 09 70 6c | 61 63 65 20 6f 66 20 74 |d in..pl|ace of t|
|000006c0| 68 65 20 66 69 6e 61 6c | 20 69 6e 73 74 72 75 63 |he final| instruc|
|000006d0| 74 69 6f 6e 73 20 77 65 | 27 72 65 20 67 6f 69 6e |tions we|'re goin|
|000006e0| 67 20 74 6f 20 70 75 74 | 20 69 6e 20 74 68 6f 73 |g to put| in thos|
|000006f0| 65 20 73 61 6d 65 20 6c | 6f 63 61 74 69 6f 6e 73 |e same l|ocations|
|00000700| 0d 09 61 74 20 66 69 6e | 61 6c 69 7a 61 74 69 6f |..at fin|alizatio|
|00000710| 6e 20 74 69 6d 65 2e 20 | 20 54 6f 20 66 69 6e 61 |n time. | To fina|
|00000720| 6c 69 7a 65 2c 20 77 65 | 20 6c 6f 6f 6b 20 74 68 |lize, we| look th|
|00000730| 72 6f 75 67 68 20 74 68 | 65 20 77 68 6f 6c 65 20 |rough th|e whole |
|00000740| 64 65 66 69 6e 69 74 69 | 6f 6e 0d 09 66 6f 72 20 |definiti|on..for |
|00000750| 74 68 65 73 65 20 70 73 | 65 75 64 6f 2d 69 6e 73 |these ps|eudo-ins|
|00000760| 74 72 75 63 74 69 6f 6e | 73 2c 20 61 6e 64 20 74 |truction|s, and t|
|00000770| 61 6b 65 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |ake the |appropri|
|00000780| 61 74 65 20 61 63 74 69 | 6f 6e 2e 0d 20 20 20 0d |ate acti|on.. .|
|00000790| 09 46 6f 72 20 74 68 65 | 20 70 73 65 75 64 6f 2d |.For the| pseudo-|
|000007a0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 2c 20 77 65 |instruct|ions, we|
|000007b0| 20 68 61 76 65 20 74 6f | 20 75 73 65 20 6f 70 63 | have to| use opc|
|000007c0| 6f 64 65 73 20 74 68 61 | 74 20 63 61 6e 27 74 20 |odes tha|t can't |
|000007d0| 65 76 65 72 20 62 65 0d | 09 75 73 65 64 20 66 6f |ever be.|.used fo|
|000007e0| 72 20 72 65 61 6c 20 69 | 6e 73 74 72 75 63 74 69 |r real i|nstructi|
|000007f0| 6f 6e 73 2e 20 20 53 6f | 20 77 65 20 75 73 65 20 |ons. So| we use |
|00000800| 74 68 65 20 6c 6d 77 20 | 61 6e 64 20 73 74 6d 77 |the lmw |and stmw|
|00000810| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 2c 20 73 | instruc|tions, s|
|00000820| 69 6e 63 65 0d 09 74 68 | 65 73 65 20 69 6e 73 74 |ince..th|ese inst|
|00000830| 72 75 63 74 69 6f 6e 73 | 20 77 6f 6e 27 74 20 61 |ructions| won't a|
|00000840| 6c 77 61 79 73 20 62 65 | 20 61 76 61 69 6c 61 62 |lways be| availab|
|00000850| 6c 65 20 69 6e 20 68 61 | 72 64 77 61 72 65 20 6f |le in ha|rdware o|
|00000860| 6e 20 50 50 43 20 70 72 | 6f 63 65 73 73 6f 72 73 |n PPC pr|ocessors|
|00000870| 2c 0d 09 73 6f 20 77 65 | 20 6e 65 76 65 72 20 65 |,..so we| never e|
|00000880| 76 65 72 20 77 61 6e 74 | 20 74 6f 20 67 65 6e 65 |ver want| to gene|
|00000890| 72 61 74 65 20 74 68 65 | 6d 2e 0d 09 0d 09 54 68 |rate the|m.....Th|
|000008a0| 69 73 20 67 69 76 65 73 | 20 75 73 20 70 73 65 75 |is gives| us pseu|
|000008b0| 64 6f 2d 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |do-instr|uctions |
|000008c0| 77 69 74 68 20 61 20 74 | 6f 70 20 62 79 74 65 20 |with a t|op byte |
|000008d0| 69 6e 20 74 68 65 20 72 | 61 6e 67 65 20 42 38 20 |in the r|ange B8 |
|000008e0| 2d 20 42 46 2e 0d 09 0d | 09 57 65 20 61 6c 73 6f |- BF....|.We also|
|000008f0| 20 64 65 66 69 6e 65 20 | 6f 75 72 20 68 61 6e 64 | define |our hand|
|00000900| 6c 65 72 20 63 6f 64 65 | 73 20 69 6e 74 6f 20 74 |ler code|s into t|
|00000910| 68 69 73 20 73 61 6d 65 | 20 72 61 6e 67 65 2c 20 |his same| range, |
|00000920| 73 69 6e 63 65 20 74 68 | 65 20 74 77 6f 2d 62 79 |since th|e two-by|
|00000930| 74 65 0d 09 68 61 6e 64 | 6c 65 72 20 63 6f 64 65 |te..hand|ler code|
|00000940| 20 61 70 70 65 61 72 73 | 20 6f 6e 20 61 6e 20 61 | appears| on an a|
|00000950| 6c 69 67 6e 65 64 20 62 | 6f 75 6e 64 61 72 79 2e |ligned b|oundary.|
|00000960| 20 20 54 68 69 73 20 77 | 69 6c 6c 20 70 72 65 76 | This w|ill prev|
|00000970| 65 6e 74 20 61 0d 09 68 | 61 6e 64 6c 65 72 20 63 |ent a..h|andler c|
|00000980| 6f 64 65 20 65 76 65 72 | 20 62 65 69 6e 67 20 6d |ode ever| being m|
|00000990| 69 73 74 61 6b 65 6e 20 | 66 6f 72 20 61 6e 20 69 |istaken |for an i|
|000009a0| 6e 73 74 72 75 63 74 69 | 6f 6e 2e 20 20 54 68 75 |nstructi|on. Thu|
|000009b0| 73 20 61 6c 6c 20 6f 75 | 72 0d 09 68 61 6e 64 6c |s all ou|r..handl|
|000009c0| 65 72 20 63 6f 64 65 73 | 20 61 6e 64 20 70 73 65 |er codes| and pse|
|000009d0| 75 64 6f 2d 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |udo-inst|ructions|
|000009e0| 20 69 64 65 6e 74 69 66 | 79 20 74 68 65 6d 73 65 | identif|y themse|
|000009f0| 6c 76 65 73 2e 0d 20 20 | 20 0d 09 53 6f 20 66 61 |lves.. | ..So fa|
|00000a00| 72 20 77 65 27 76 65 20 | 64 65 66 69 6e 65 64 20 |r we've |defined |
|00000a10| 74 68 65 73 65 3a 0d 20 | 20 20 0d 09 42 41 78 78 |these:. | ..BAxx|
|00000a20| 20 78 78 78 78 09 63 61 | 6c 6c 20 74 6f 20 61 20 | xxxx.ca|ll to a |
|00000a30| 4d 6f 70 73 20 77 6f 72 | 64 20 28 78 78 20 78 78 |Mops wor|d (xx xx|
|00000a40| 78 78 20 69 73 20 63 6f | 64 65 2d 72 65 6c 61 74 |xx is co|de-relat|
|00000a50| 69 76 65 20 6f 66 66 73 | 65 74 29 0d 0d 09 42 42 |ive offs|et)...BB|
|00000a60| 78 78 20 78 78 78 78 09 | 66 6c 6f 61 74 69 6e 67 |xx xxxx.|floating|
|00000a70| 2d 70 6f 69 6e 74 20 66 | 6c 61 67 20 62 79 74 65 |-point f|lag byte|
|00000a80| 73 2e 20 20 54 68 69 73 | 20 63 6f 64 65 20 69 73 |s. This| code is|
|00000a90| 20 62 61 73 69 63 61 6c | 6c 79 20 66 6f 72 0d 20 | basical|ly for. |
|00000aa0| 20 20 09 09 09 09 74 68 | 65 20 64 69 73 61 73 73 | ....th|e disass|
|00000ab0| 65 6d 62 6c 65 72 2c 20 | 73 69 6e 63 65 20 69 74 |embler, |since it|
|00000ac0| 27 73 20 61 6c 69 67 6e | 65 64 20 61 6e 64 20 33 |'s align|ed and 3|
|00000ad0| 20 66 6c 61 67 20 62 79 | 74 65 73 0d 20 20 20 09 | flag by|tes. .|
|00000ae0| 09 09 09 61 72 65 20 70 | 6c 65 6e 74 79 2e 20 20 |...are p|lenty. |
|00000af0| 49 74 20 73 68 6f 75 6c | 64 6e 27 74 20 63 6f 6d |It shoul|dn't com|
|00000b00| 65 20 75 70 20 69 6e 20 | 66 69 6e 61 6c 69 7a 61 |e up in |finaliza|
|00000b10| 74 69 6f 6e 2e 0d 0d 09 | 42 43 78 78 09 09 61 6c |tion....|BCxx..al|
|00000b20| 6c 20 68 61 6e 64 6c 65 | 72 20 63 6f 64 65 73 20 |l handle|r codes |
|00000b30| 77 68 69 63 68 20 68 61 | 76 65 20 6e 6f 20 62 6f |which ha|ve no bo|
|00000b40| 69 6c 65 72 70 6c 61 74 | 65 20 63 6f 64 65 20 28 |ilerplat|e code (|
|00000b50| 63 61 6e 27 74 0d 09 09 | 09 09 62 65 20 45 58 45 |can't...|..be EXE|
|00000b60| 43 55 54 45 64 29 2e 20 | 20 55 6e 6c 69 6b 65 20 |CUTEd). | Unlike |
|00000b70| 6f 6e 20 74 68 65 20 36 | 38 6b 2c 20 78 78 20 69 |on the 6|8k, xx i|
|00000b80| 73 20 75 6e 73 69 67 6e | 65 64 20 61 6e 64 20 6e |s unsign|ed and n|
|00000b90| 6f 74 0d 09 09 09 09 64 | 6f 75 62 6c 65 64 20 28 |ot.....d|oubled (|
|00000ba0| 73 6f 20 77 65 20 63 61 | 6e 20 68 61 76 65 20 32 |so we ca|n have 2|
|00000bb0| 35 36 20 63 6f 64 65 73 | 20 69 66 20 77 65 20 6e |56 codes| if we n|
|00000bc0| 65 65 64 20 74 68 65 6d | 29 2e 0d 09 09 09 09 0d |eed them|).......|
|00000bd0| 09 42 44 78 78 09 09 61 | 6c 6c 20 6f 74 68 65 72 |.BDxx..a|ll other|
|00000be0| 20 68 61 6e 64 6c 65 72 | 20 63 6f 64 65 73 2c 20 | handler| codes, |
|00000bf0| 65 78 63 65 70 74 20 66 | 6f 72 20 63 6f 6c 6f 6e |except f|or colon|
|00000c00| 20 64 65 66 6e 73 2e 20 | 20 54 68 65 79 20 63 61 | defns. | They ca|
|00000c10| 6e 0d 20 20 20 09 09 09 | 09 62 65 20 45 58 45 43 |n. ...|.be EXEC|
|00000c20| 55 54 45 64 2e 0d 0d 09 | 42 45 30 30 09 09 09 68 |UTEd....|BE00...h|
|00000c30| 61 6e 64 6c 65 72 20 63 | 6f 64 65 20 66 6f 72 20 |andler c|ode for |
|00000c40| 61 20 63 6f 6c 6f 6e 20 | 64 65 66 6e 0d 09 42 45 |a colon |defn..BE|
|00000c50| 30 31 09 09 09 64 69 74 | 74 6f 2c 20 62 75 74 20 |01...dit|to, but |
|00000c60| 6d 65 61 6e 73 20 74 68 | 69 73 20 69 73 20 61 20 |means th|is is a |
|00000c70| 66 6f 72 77 61 72 64 20 | 64 65 66 6e 2e 0d 09 42 |forward |defn...B|
|00000c80| 45 30 32 09 09 09 6d 61 | 72 6b 73 20 74 68 65 20 |E02...ma|rks the |
|00000c90| 73 74 61 72 74 20 6f 66 | 20 3a 6c 6f 63 20 63 6f |start of| :loc co|
|00000ca0| 64 65 0d 09 42 45 30 33 | 09 09 09 6d 61 72 6b 73 |de..BE03|...marks|
|00000cb0| 20 74 68 65 20 73 74 61 | 72 74 20 6f 66 20 3a 6d | the sta|rt of :m|
|00000cc0| 6c 6f 63 20 63 6f 64 65 | 0d 09 42 45 30 34 09 09 |loc code|..BE04..|
|00000cd0| 09 68 61 6e 64 6c 65 72 | 20 63 6f 64 65 20 66 6f |.handler| code fo|
|00000ce0| 72 20 61 20 3a 70 70 63 | 5f 70 72 6f 63 20 64 65 |r a :ppc|_proc de|
|00000cf0| 66 6e 0d 0d 09 42 45 34 | 30 09 09 09 6d 65 74 68 |fn...BE4|0...meth|
|00000d00| 6f 64 20 28 6e 6f 74 65 | 20 42 44 34 30 20 69 73 |od (note| BD40 is|
|00000d10| 20 61 6e 20 69 6e 6c 69 | 6e 65 20 6d 65 74 68 6f | an inli|ne metho|
|00000d20| 64 20 2d 20 73 6f 20 74 | 68 65 20 34 30 20 61 6c |d - so t|he 40 al|
|00000d30| 77 61 79 73 0d 20 20 20 | 09 09 09 09 09 6d 61 72 |ways. |.....mar|
|00000d40| 6b 73 20 61 20 6d 65 74 | 68 6f 64 29 0d 0d 09 09 |ks a met|hod)....|
|00000d50| 09 28 77 65 27 6c 6c 20 | 72 65 73 65 72 76 65 20 |.(we'll |reserve |
|00000d60| 42 45 78 78 20 66 6f 72 | 20 61 6e 79 20 66 75 72 |BExx for| any fur|
|00000d70| 74 68 65 72 20 6f 70 74 | 69 6f 6e 73 20 6f 6e 20 |ther opt|ions on |
|00000d80| 63 6f 6c 6f 6e 20 64 65 | 66 69 6e 69 74 69 6f 6e |colon de|finition|
|00000d90| 73 2e 29 0d 20 20 20 0d | 09 54 68 65 73 65 20 6e |s.). .|.These n|
|00000da0| 65 78 74 20 74 77 6f 20 | 63 61 6e 27 74 20 65 76 |ext two |can't ev|
|00000db0| 65 72 20 61 70 70 65 61 | 72 20 69 6e 73 69 64 65 |er appea|r inside|
|00000dc0| 20 61 20 64 65 66 69 6e | 69 74 69 6f 6e 2c 20 73 | a defin|ition, s|
|00000dd0| 6f 20 77 65 20 67 69 76 | 65 20 61 6e 20 65 72 72 |o we giv|e an err|
|00000de0| 6f 72 0d 09 69 66 20 74 | 68 65 79 27 72 65 20 65 |or..if t|hey're e|
|00000df0| 6e 63 6f 75 6e 74 65 72 | 65 64 20 64 75 72 69 6e |ncounter|ed durin|
|00000e00| 67 20 66 69 6e 61 6c 69 | 7a 61 74 69 6f 6e 2e 0d |g finali|zation..|
|00000e10| 09 0d 09 42 46 30 31 09 | 09 09 68 61 6e 64 6c 65 |...BF01.|..handle|
|00000e20| 72 20 63 6f 64 65 20 66 | 6f 72 20 53 59 53 43 41 |r code f|or SYSCA|
|00000e30| 4c 4c 20 61 6e 64 20 45 | 58 54 45 52 4e 0d 09 42 |LL and E|XTERN..B|
|00000e40| 46 30 42 09 09 09 68 61 | 6e 64 6c 65 72 20 63 6f |F0B...ha|ndler co|
|00000e50| 64 65 20 66 6f 72 20 4c | 49 42 52 41 52 59 0d 09 |de for L|IBRARY..|
|00000e60| 0d 09 42 46 30 32 20 30 | 30 30 30 09 45 58 49 54 |..BF02 0|000.EXIT|
|00000e70| 0d 09 42 46 30 33 20 78 | 78 78 78 09 63 6f 6e 64 |..BF03 x|xxx.cond|
|00000e80| 69 74 69 6f 6e 61 6c 20 | 45 58 49 54 20 28 78 78 |itional |EXIT (xx|
|00000e90| 78 78 20 69 73 20 63 6f | 6e 64 2e 20 62 72 61 6e |xx is co|nd. bran|
|00000ea0| 63 68 20 6f 70 63 6f 64 | 65 29 0d 09 42 46 30 34 |ch opcod|e)..BF04|
|00000eb0| 09 30 30 30 30 09 4c 45 | 41 56 45 0d 09 42 46 30 |.0000.LE|AVE..BF0|
|00000ec0| 35 20 30 30 30 30 09 4c | 4f 4f 50 0d 09 42 46 30 |5 0000.L|OOP..BF0|
|00000ed0| 36 20 30 30 30 30 09 74 | 61 72 67 65 74 20 6f 66 |6 0000.t|arget of|
|00000ee0| 20 61 20 66 6f 72 77 61 | 72 64 20 64 65 66 6e 2e | a forwa|rd defn.|
|00000ef0| 20 20 54 68 69 73 20 6d | 61 72 6b 65 72 20 69 73 | This m|arker is|
|00000f00| 20 72 65 64 75 6e 64 61 | 6e 74 2c 0d 09 09 09 09 | redunda|nt,.....|
|00000f10| 09 62 75 74 20 6d 61 6b | 65 73 20 74 68 65 20 64 |.but mak|es the d|
|00000f20| 65 63 6f 6d 70 69 6c 65 | 72 20 6f 75 74 70 75 74 |ecompile|r output|
|00000f30| 20 6c 6f 6f 6b 20 6d 6f | 72 65 20 73 65 6e 73 69 | look mo|re sensi|
|00000f40| 62 6c 65 2e 0d 09 0d 09 | 42 46 30 38 20 78 78 78 |ble.....|BF08 xxx|
|00000f50| 78 09 75 6e 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 20 |x.uncond|itional |
|00000f60| 62 72 61 6e 63 68 2e 20 | 20 78 78 78 78 20 69 73 |branch. | xxxx is|
|00000f70| 20 6f 66 66 73 65 74 20 | 28 77 65 20 6f 6e 6c 79 | offset |(we only|
|00000f80| 20 6e 65 65 64 20 31 36 | 20 62 69 74 73 29 2e 0d | need 16| bits)..|
|00000f90| 09 0d 09 42 46 30 39 20 | 78 78 78 78 09 45 4c 53 |...BF09 |xxxx.ELS|
|00000fa0| 45 20 2d 20 62 72 61 6e | 63 68 2e 20 20 78 78 78 |E - bran|ch. xxx|
|00000fb0| 78 20 69 73 20 69 6e 69 | 74 69 61 6c 6c 79 20 74 |x is ini|tially t|
|00000fc0| 68 65 20 6f 66 66 73 65 | 74 20 62 61 63 6b 20 74 |he offse|t back t|
|00000fd0| 6f 20 74 68 65 0d 20 20 | 20 09 09 09 09 6f 72 69 |o the. | ....ori|
|00000fe0| 67 69 6e 61 6c 20 63 6f | 6e 64 69 74 69 6f 6e 61 |ginal co|nditiona|
|00000ff0| 6c 20 62 72 61 6e 63 68 | 2c 20 69 6e 20 63 61 73 |l branch|, in cas|
|00001000| 65 20 77 65 20 64 65 6c | 65 74 65 20 74 68 69 73 |e we del|ete this|
|00001010| 20 62 72 61 6e 63 68 0d | 20 20 20 09 09 09 09 61 | branch.| ....a|
|00001020| 6e 64 20 6e 65 65 64 20 | 74 6f 20 61 64 6a 75 73 |nd need |to adjus|
|00001030| 74 2e 20 20 4f 6e 63 65 | 20 74 68 65 20 62 72 61 |t. Once| the bra|
|00001040| 6e 63 68 20 69 73 20 72 | 65 73 6f 6c 76 65 64 2c |nch is r|esolved,|
|00001050| 20 61 6e 64 20 77 65 0d | 20 20 20 09 09 09 09 6b | and we.| ....k|
|00001060| 6e 6f 77 20 69 74 20 77 | 6f 6e 27 74 20 62 65 20 |now it w|on't be |
|00001070| 64 65 6c 65 74 65 64 2c | 20 78 78 78 78 20 62 65 |deleted,| xxxx be|
|00001080| 63 6f 6d 65 73 20 74 68 | 65 20 62 72 61 6e 63 68 |comes th|e branch|
|00001090| 20 6f 66 66 73 65 74 0d | 20 20 20 09 09 09 09 61 | offset.| ....a|
|000010a0| 73 20 66 6f 72 20 6f 74 | 68 65 72 20 75 6e 63 6f |s for ot|her unco|
|000010b0| 6e 64 69 74 69 6f 6e 61 | 6c 20 62 72 61 6e 63 68 |nditiona|l branch|
|000010c0| 65 73 2e 20 20 57 65 20 | 63 61 6e 20 74 65 6c 6c |es. We |can tell|
|000010d0| 20 77 68 69 63 68 0d 20 | 20 20 09 09 09 09 69 73 | which. | ....is|
|000010e0| 20 77 68 69 63 68 2c 20 | 73 69 6e 63 65 20 74 68 | which, |since th|
|000010f0| 65 20 66 69 72 73 74 20 | 6f 66 66 73 65 74 20 69 |e first |offset i|
|00001100| 73 20 6e 65 67 61 74 69 | 76 65 20 61 6e 64 20 74 |s negati|ve and t|
|00001110| 68 65 0d 20 20 20 09 09 | 09 09 73 65 63 6f 6e 64 |he. ..|..second|
|00001120| 20 70 6f 73 69 74 69 76 | 65 2e 0d 0d 09 42 46 30 | positiv|e....BF0|
|00001130| 41 09 09 72 65 70 6c 61 | 63 65 20 77 69 74 68 20 |A..repla|ce with |
|00001140| 61 20 6c 69 74 65 72 61 | 6c 20 6c 6f 61 64 20 69 |a litera|l load i|
|00001150| 6e 74 6f 20 72 30 20 6f | 66 20 74 68 65 20 64 69 |nto r0 o|f the di|
|00001160| 73 74 61 6e 63 65 20 74 | 68 65 20 63 6f 64 65 0d |stance t|he code.|
|00001170| 20 20 20 09 09 09 09 69 | 73 20 6d 6f 76 65 64 2e | ....i|s moved.|
|00001180| 20 20 55 73 65 64 20 69 | 6e 20 67 65 6e 65 72 61 | Used i|n genera|
|00001190| 74 69 6e 67 20 74 68 65 | 20 61 64 64 72 20 6f 66 |ting the| addr of|
|000011a0| 20 61 20 6c 6f 63 61 74 | 69 6f 6e 20 0d 20 20 20 | a locat|ion . |
|000011b0| 09 09 09 09 77 69 74 68 | 69 6e 20 74 68 65 20 63 |....with|in the c|
|000011c0| 75 72 72 65 6e 74 20 64 | 65 66 69 6e 69 74 69 6f |urrent d|efinitio|
|000011d0| 6e 20 28 73 69 6e 63 65 | 20 77 65 20 64 6f 6e 27 |n (since| we don'|
|000011e0| 74 20 6b 6e 6f 77 20 75 | 6e 74 69 6c 0d 20 20 20 |t know u|ntil. |
|000011f0| 09 09 09 09 74 68 65 20 | 65 6e 64 20 68 6f 77 20 |....the |end how |
|00001200| 66 61 72 20 69 74 20 6d | 69 67 68 74 20 62 65 20 |far it m|ight be |
|00001210| 6d 6f 76 65 64 29 2e 0d | 20 20 20 0d 2a 29 0d 0d |moved)..| .*)..|
|00001220| 0d 20 20 20 0d 30 09 76 | 61 6c 75 65 09 43 55 52 |. .0.v|alue.CUR|
|00001230| 52 2d 44 45 46 2d 43 4f | 44 45 09 09 5c 20 77 68 |R-DEF-CO|DE..\ wh|
|00001240| 65 6e 20 77 65 20 66 69 | 6e 69 73 68 20 63 6f 6d |en we fi|nish com|
|00001250| 70 69 6c 69 6e 67 20 61 | 20 64 65 66 6e 20 77 65 |piling a| defn we|
|00001260| 20 6d 6f 76 65 0d 09 09 | 09 09 09 09 09 09 5c 20 | move...|......\ |
|00001270| 20 74 68 65 20 63 6f 64 | 65 20 74 6f 20 6d 61 6b | the cod|e to mak|
|00001280| 65 20 72 6f 6f 6d 20 66 | 6f 72 20 74 68 65 20 70 |e room f|or the p|
|00001290| 72 6f 6c 6f 67 20 2d 0d | 09 09 09 09 09 09 09 09 |rolog -.|........|
|000012a0| 5c 20 20 74 68 69 73 20 | 68 6f 6c 64 73 20 74 68 |\ this |holds th|
|000012b0| 65 20 61 64 64 72 20 6f | 66 20 74 68 65 20 63 6f |e addr o|f the co|
|000012c0| 64 65 20 70 72 6f 70 65 | 72 2c 0d 09 09 09 09 09 |de prope|r,......|
|000012d0| 09 09 09 5c 20 20 77 68 | 69 63 68 20 77 65 20 6e |...\ wh|ich we n|
|000012e0| 65 65 64 20 77 68 65 6e | 20 77 65 27 72 65 20 66 |eed when| we're f|
|000012f0| 69 6e 61 6c 69 7a 69 6e | 67 2e 0d 30 09 76 61 6c |inalizin|g..0.val|
|00001300| 75 65 09 45 58 49 54 5f | 4c 4f 43 0d 70 70 63 3f |ue.EXIT_|LOC.ppc?|
|00001310| 20 6e 6f 74 0d 5b 69 66 | 5d 0d 30 09 76 61 6c 75 | not.[if|].0.valu|
|00001320| 65 09 43 4f 4e 53 54 5f | 44 41 54 41 5f 53 54 41 |e.CONST_|DATA_STA|
|00001330| 52 54 09 5c 20 50 50 43 | 20 76 65 72 73 69 6f 6e |RT.\ PPC| version|
|00001340| 20 69 73 20 69 6e 20 70 | 6e 75 63 31 0d 5b 74 68 | is in p|nuc1.[th|
|00001350| 65 6e 5d 0d 30 09 76 61 | 6c 75 65 09 31 73 74 5f |en].0.va|lue.1st_|
|00001360| 64 65 66 6e 0d 30 09 76 | 61 6c 75 65 09 69 6e 69 |defn.0.v|alue.ini|
|00001370| 74 5f 65 6e 74 72 79 0d | 0d 0d 66 6f 72 77 61 72 |t_entry.|..forwar|
|00001380| 64 20 20 61 64 64 5f 63 | 6f 6e 73 74 5f 64 61 74 |d add_c|onst_dat|
|00001390| 61 0d 66 6f 72 77 61 72 | 64 09 20 73 65 74 5f 43 |a.forwar|d. set_C|
|000013a0| 44 5f 67 70 72 23 20 0d | 66 6f 72 77 61 72 64 20 |D_gpr# .|forward |
|000013b0| 20 46 50 5f 61 64 6a 75 | 73 74 0d 0d 3a 66 20 73 | FP_adju|st..:f s|
|000013c0| 65 74 5f 43 44 5f 67 70 | 72 23 20 20 3b 66 09 09 |et_CD_gp|r# ;f..|
|000013d0| 5c 20 74 68 65 20 72 65 | 61 6c 20 64 65 66 6e 20 |\ the re|al defn |
|000013e0| 69 73 20 69 6e 20 7a 41 | 72 67 73 0d 0d 0d 3a 20 |is in zA|rgs...: |
|000013f0| 46 49 58 5f 55 4e 43 4f | 4e 44 5f 42 52 41 4e 43 |FIX_UNCO|ND_BRANC|
|00001400| 48 20 20 7b 20 70 6f 73 | 20 5c 20 74 68 69 73 50 |H { pos| \ thisP|
|00001410| 6f 73 20 6f 66 66 73 20 | 2d 2d 20 7d 0d 09 09 5c |os offs |-- }...\|
|00001420| 20 64 75 65 20 74 6f 20 | 62 61 63 6b 2d 65 71 75 | due to |back-equ|
|00001430| 61 6c 69 7a 61 74 69 6f | 6e 2c 20 77 65 20 63 61 |alizatio|n, we ca|
|00001440| 6e 20 67 65 74 20 75 6e | 63 6f 6e 64 69 74 69 6f |n get un|conditio|
|00001450| 6e 61 6c 20 62 72 61 6e | 63 68 65 73 20 74 6f 0d |nal bran|ches to.|
|00001460| 09 09 5c 20 20 6f 74 68 | 65 72 20 75 6e 63 6f 6e |..\ oth|er uncon|
|00001470| 64 69 74 69 6f 6e 61 6c | 20 62 72 61 6e 63 68 65 |ditional| branche|
|00001480| 73 2e 20 20 57 65 20 63 | 61 6e 20 73 69 6d 70 6c |s. We c|an simpl|
|00001490| 69 66 79 20 74 68 65 73 | 65 20 68 65 72 65 2e 0d |ify thes|e here..|
|000014a0| 09 09 0d 09 70 6f 73 20 | 32 2b 20 77 40 78 20 20 |....pos |2+ w@x |
|000014b0| 2d 3e 20 6f 66 66 73 0d | 09 70 6f 73 20 2d 3e 20 |-> offs.|.pos -> |
|000014c0| 74 68 69 73 50 6f 73 0d | 09 42 45 47 49 4e 0d 09 |thisPos.|.BEGIN..|
|000014d0| 09 6f 66 66 73 20 4e 49 | 46 09 5c 20 77 65 20 6d |.offs NI|F.\ we m|
|000014e0| 75 73 74 20 68 61 76 65 | 20 61 6e 20 65 6d 70 74 |ust have| an empt|
|000014f0| 79 20 6c 6f 6f 70 21 20 | 20 46 6f 72 63 65 20 74 |y loop! | Force t|
|00001500| 68 69 73 20 6c 6f 6f 70 | 20 74 6f 20 65 6e 64 2e |his loop| to end.|
|00001510| 2e 2e 0d 09 09 09 66 61 | 6c 73 65 0d 09 09 45 4c |......fa|lse...EL|
|00001520| 53 45 0d 09 09 09 6f 66 | 66 73 20 2b 2b 3e 20 74 |SE....of|fs ++> t|
|00001530| 68 69 73 50 6f 73 0d 09 | 09 09 74 68 69 73 50 6f |hisPos..|..thisPo|
|00001540| 73 20 77 40 20 20 24 20 | 46 46 46 45 20 61 6e 64 |s w@ $ |FFFE and|
|00001550| 20 20 24 20 42 46 30 38 | 20 3d 0d 09 09 54 48 45 | $ BF08| =...THE|
|00001560| 4e 0d 09 57 48 49 4c 45 | 0d 09 09 74 68 69 73 50 |N..WHILE|...thisP|
|00001570| 6f 73 20 32 2b 20 77 40 | 78 20 20 2d 3e 20 6f 66 |os 2+ w@|x -> of|
|00001580| 66 73 0d 09 52 45 50 45 | 41 54 0d 09 74 68 69 73 |fs..REPE|AT..this|
|00001590| 50 6f 73 20 70 6f 73 20 | 2d 20 20 24 20 33 46 46 |Pos pos |- $ 3FF|
|000015a0| 46 46 46 46 20 61 6e 64 | 20 20 24 20 34 38 30 30 |FFFF and| $ 4800|
|000015b0| 30 30 30 30 20 6f 72 09 | 09 5c 20 62 20 69 6e 73 |0000 or.|.\ b ins|
|000015c0| 74 72 75 63 74 69 6f 6e | 0d 09 70 6f 73 20 21 0d |truction|..pos !.|
|000015d0| 3b 0d 0d 0d 3a 20 46 49 | 58 5f 45 58 49 54 20 20 |;...: FI|X_EXIT |
|000015e0| 7b 20 70 6f 73 20 2d 2d | 20 7d 0d 09 24 20 34 38 |{ pos --| }..$ 48|
|000015f0| 30 30 30 30 30 30 09 09 | 09 5c 20 62 20 69 6e 73 |000000..|.\ b ins|
|00001600| 74 72 75 63 74 69 6f 6e | 0d 09 65 78 69 74 5f 6c |truction|..exit_l|
|00001610| 6f 63 20 20 70 6f 73 20 | 2d 20 20 24 20 30 30 46 |oc pos |- $ 00F|
|00001620| 46 46 46 46 46 20 61 6e | 64 0d 09 6f 72 20 20 70 |FFFFF an|d..or p|
|00001630| 6f 73 20 21 0d 3b 0d 0d | 3a 20 46 49 58 5f 43 4f |os !.;..|: FIX_CO|
|00001640| 4e 44 49 54 49 4f 4e 41 | 4c 5f 45 58 49 54 20 20 |NDITIONA|L_EXIT |
|00001650| 7b 20 70 6f 73 20 2d 2d | 20 7d 0d 09 70 6f 73 20 |{ pos --| }..pos |
|00001660| 40 20 31 36 20 3c 3c 09 | 09 09 5c 20 63 6f 6e 64 |@ 16 <<.|..\ cond|
|00001670| 20 62 72 61 6e 63 68 20 | 50 50 43 20 6f 70 63 6f | branch |PPC opco|
|00001680| 64 65 0d 09 65 78 69 74 | 5f 6c 6f 63 20 20 70 6f |de..exit|_loc po|
|00001690| 73 20 2d 20 20 24 20 30 | 30 30 30 46 46 46 46 20 |s - $ 0|000FFFF |
|000016a0| 61 6e 64 0d 09 6f 72 20 | 20 70 6f 73 20 21 0d 3b |and..or | pos !.;|
|000016b0| 0d 0d 3a 20 46 49 58 5f | 4c 45 41 56 45 20 20 7b |..: FIX_|LEAVE {|
|000016c0| 20 70 6f 73 20 5c 20 74 | 61 72 67 65 74 20 2d 2d | pos \ t|arget --|
|000016d0| 20 7d 0d 09 70 6f 73 20 | 2d 3e 20 74 61 72 67 65 | }..pos |-> targe|
|000016e0| 74 0d 09 42 45 47 49 4e | 09 09 09 09 5c 20 73 63 |t..BEGIN|....\ sc|
|000016f0| 61 6e 20 66 6f 72 77 61 | 72 64 20 74 6f 20 66 69 |an forwa|rd to fi|
|00001700| 6e 64 20 74 68 65 20 6e | 65 78 74 20 4c 4f 4f 50 |nd the n|ext LOOP|
|00001710| 20 6f 72 20 2b 4c 4f 4f | 50 0d 09 09 34 20 2b 2b | or +LOO|P...4 ++|
|00001720| 3e 20 74 61 72 67 65 74 | 0d 09 09 74 61 72 67 65 |> target|...targe|
|00001730| 74 20 77 40 20 24 20 42 | 46 30 35 20 3d 0d 09 55 |t w@ $ B|F05 =..U|
|00001740| 4e 54 49 4c 0d 09 24 20 | 34 38 30 30 30 30 30 30 |NTIL..$ |48000000|
|00001750| 09 09 09 5c 20 75 6e 63 | 6f 6e 64 20 62 72 61 6e |...\ unc|ond bran|
|00001760| 63 68 20 6f 70 63 6f 64 | 65 0d 09 74 61 72 67 65 |ch opcod|e..targe|
|00001770| 74 20 20 70 6f 73 20 2d | 20 20 24 20 30 30 46 46 |t pos -| $ 00FF|
|00001780| 46 46 46 46 20 61 6e 64 | 0d 09 6f 72 20 20 70 6f |FFFF and|..or po|
|00001790| 73 20 21 0d 3b 0d 0d 3a | 20 46 49 58 5f 4c 4f 4f |s !.;..:| FIX_LOO|
|000017a0| 50 20 20 7b 20 70 6f 73 | 20 2d 2d 20 7d 09 09 5c |P { pos| -- }..\|
|000017b0| 20 72 65 70 6c 61 63 65 | 73 20 74 68 65 20 4c 4f | replace|s the LO|
|000017c0| 4f 50 20 70 73 65 75 64 | 6f 2d 6f 70 20 77 69 74 |OP pseud|o-op wit|
|000017d0| 68 20 74 68 65 20 66 69 | 72 73 74 20 69 6e 73 74 |h the fi|rst inst|
|000017e0| 72 75 63 74 69 6f 6e 0d | 09 09 09 09 09 09 09 5c |ruction.|.......\|
|000017f0| 20 20 6f 66 20 74 68 65 | 20 4c 4f 4f 50 20 77 69 | of the| LOOP wi|
|00001800| 6e 64 75 70 20 73 65 71 | 75 65 6e 63 65 20 28 73 |ndup seq|uence (s|
|00001810| 65 65 20 63 6f 6d 6d 65 | 6e 74 73 20 74 68 65 72 |ee comme|nts ther|
|00001820| 65 29 0d 0d 09 24 20 38 | 32 42 31 30 30 30 30 20 |e)...$ 8|2B10000 |
|00001830| 20 70 6f 73 20 21 09 09 | 5c 20 6c 77 7a 20 20 20 | pos !..|\ lwz |
|00001840| 20 20 20 20 72 32 31 2f | 49 2c 20 28 72 31 37 2f | r21/|I, (r17/|
|00001850| 52 50 29 09 09 09 72 65 | 73 74 6f 72 65 20 49 0d |RP)...re|store I.|
|00001860| 3b 0d 0d 0d 3a 20 46 49 | 58 5f 43 41 4c 4c 20 20 |;...: FI|X_CALL |
|00001870| 7b 20 70 6f 73 20 2d 2d | 20 7d 0d 09 70 6f 73 20 |{ pos --| }..pos |
|00001880| 40 20 20 24 20 30 30 46 | 46 46 46 46 46 20 61 6e |@ $ 00F|FFFFF an|
|00001890| 64 09 09 09 5c 20 63 6f | 64 65 20 61 72 65 61 20 |d...\ co|de area |
|000018a0| 6f 66 66 73 65 74 20 74 | 6f 20 63 61 6c 6c 65 64 |offset t|o called|
|000018b0| 20 6c 6f 63 61 74 69 6f | 6e 0d 09 63 6f 64 65 5f | locatio|n..code_|
|000018c0| 73 74 61 72 74 20 2b 20 | 20 70 6f 73 20 2d 09 09 |start + | pos -..|
|000018d0| 09 09 5c 20 6d 61 6b 65 | 20 72 65 6c 61 74 69 76 |..\ make| relativ|
|000018e0| 65 20 74 6f 20 6c 6f 63 | 6e 20 6f 66 20 63 61 6c |e to loc|n of cal|
|000018f0| 6c 0d 09 24 20 30 33 46 | 46 46 46 46 46 20 61 6e |l..$ 03F|FFFFF an|
|00001900| 64 20 20 24 20 34 38 30 | 30 30 30 30 31 20 6f 72 |d $ 480|00001 or|
|00001910| 09 5c 20 63 6f 6e 73 74 | 72 75 63 74 20 62 6c 20 |.\ const|ruct bl |
|00001920| 69 6e 73 74 72 6e 0d 09 | 70 6f 73 20 21 0d 3b 0d |instrn..|pos !.;.|
|00001930| 0d 0d 3a 20 43 4f 4d 50 | 49 4c 45 5f 44 49 53 54 |..: COMP|ILE_DIST|
|00001940| 41 4e 43 45 5f 4d 4f 56 | 45 44 20 20 7b 20 70 6f |ANCE_MOV|ED { po|
|00001950| 73 20 2d 2d 20 7d 0d 09 | 24 20 33 38 30 30 30 30 |s -- }..|$ 380000|
|00001960| 30 30 20 20 64 69 73 74 | 61 6e 63 65 5f 63 6f 64 |00 dist|ance_cod|
|00001970| 65 5f 6d 6f 76 65 64 20 | 6f 72 20 20 70 6f 73 20 |e_moved |or pos |
|00001980| 21 09 5c 20 61 64 64 69 | 20 72 30 2c 20 30 2c 20 |!.\ addi| r0, 0, |
|00001990| 64 64 64 64 0d 3b 0d 0d | 3a 20 46 49 58 5f 56 41 |dddd.;..|: FIX_VA|
|000019a0| 52 49 41 4e 54 5f 4f 50 | 20 20 7b 20 70 6f 73 20 |RIANT_OP| { pos |
|000019b0| 5c 20 76 6f 70 20 2d 2d | 20 7d 09 09 5c 20 68 61 |\ vop --| }..\ ha|
|000019c0| 6e 64 6c 65 73 20 42 46 | 78 78 20 6f 70 63 6f 64 |ndles BF|xx opcod|
|000019d0| 65 73 0d 09 70 6f 73 20 | 31 2b 20 63 40 20 20 2d |es..pos |1+ c@ -|
|000019e0| 3e 20 76 6f 70 0d 09 76 | 6f 70 0d 09 53 45 4c 45 |> vop..v|op..SELE|
|000019f0| 43 54 5b 09 24 20 30 32 | 09 5d 3d 3e 09 09 70 6f |CT[.$ 02|.]=>..po|
|00001a00| 73 20 20 66 69 78 5f 65 | 78 69 74 0d 09 09 20 20 |s fix_e|xit... |
|00001a10| 5b 09 24 20 30 33 09 5d | 3d 3e 09 09 70 6f 73 20 |[.$ 03.]|=>..pos |
|00001a20| 20 66 69 78 5f 63 6f 6e | 64 69 74 69 6f 6e 61 6c | fix_con|ditional|
|00001a30| 5f 65 78 69 74 0d 09 09 | 20 20 5b 09 24 20 30 34 |_exit...| [.$ 04|
|00001a40| 09 5d 3d 3e 09 09 70 6f | 73 20 20 66 69 78 5f 6c |.]=>..po|s fix_l|
|00001a50| 65 61 76 65 0d 09 09 20 | 20 5b 09 24 20 30 35 09 |eave... | [.$ 05.|
|00001a60| 5d 3d 3e 09 09 70 6f 73 | 20 20 66 69 78 5f 6c 6f |]=>..pos| fix_lo|
|00001a70| 6f 70 0d 09 09 20 20 5b | 09 24 20 30 36 09 5d 3d |op... [|.$ 06.]=|
|00001a80| 3e 09 09 09 5c 20 69 67 | 6e 6f 72 65 20 74 68 69 |>...\ ig|nore thi|
|00001a90| 73 20 6f 6e 65 0d 09 09 | 20 20 5b 09 24 20 30 38 |s one...| [.$ 08|
|00001aa0| 09 5d 2c 0d 09 09 20 20 | 5b 09 24 20 30 39 09 5d |.],... |[.$ 09.]|
|00001ab0| 3d 3e 09 09 70 6f 73 20 | 20 66 69 78 5f 75 6e 63 |=>..pos | fix_unc|
|00001ac0| 6f 6e 64 5f 62 72 61 6e | 63 68 0d 09 09 20 20 5b |ond_bran|ch... [|
|00001ad0| 09 24 20 30 41 09 5d 3d | 3e 09 09 70 6f 73 20 20 |.$ 0A.]=|>..pos |
|00001ae0| 63 6f 6d 70 69 6c 65 5f | 64 69 73 74 61 6e 63 65 |compile_|distance|
|00001af0| 5f 6d 6f 76 65 64 0d 0d | 09 09 20 20 44 45 46 41 |_moved..|.. DEFA|
|00001b00| 55 4c 54 3d 3e 20 20 63 | 72 20 2e 68 20 2e 22 20 |ULT=> c|r .h ." |
|00001b10| 69 6c 6c 65 67 61 6c 20 | 76 61 72 69 61 6e 74 20 |illegal |variant |
|00001b20| 6f 70 63 6f 64 65 20 64 | 75 72 69 6e 67 20 66 69 |opcode d|uring fi|
|00001b30| 6e 61 6c 69 7a 61 74 69 | 6f 6e 22 0d 09 5d 53 45 |nalizati|on"..]SE|
|00001b40| 4c 45 43 54 0d 0d 3b 0d | 0d 3a 20 46 49 58 5f 31 |LECT..;.|.: FIX_1|
|00001b50| 5f 4f 50 20 20 7b 20 70 | 6f 73 20 6f 70 20 2d 2d |_OP { p|os op --|
|00001b60| 20 7d 0d 09 6f 70 0d 09 | 53 45 4c 45 43 54 5b 09 | }..op..|SELECT[.|
|00001b70| 24 20 42 41 09 5d 3d 3e | 09 09 70 6f 73 20 20 66 |$ BA.]=>|..pos f|
|00001b80| 69 78 5f 63 61 6c 6c 0d | 09 09 20 20 5b 09 24 20 |ix_call.|.. [.$ |
|00001b90| 42 46 09 5d 3d 3e 09 09 | 70 6f 73 20 20 66 69 78 |BF.]=>..|pos fix|
|00001ba0| 5f 76 61 72 69 61 6e 74 | 5f 6f 70 0d 09 09 20 20 |_variant|_op... |
|00001bb0| 44 45 46 41 55 4c 54 3d | 3e 20 20 63 72 20 2e 68 |DEFAULT=|> cr .h|
|00001bc0| 20 2e 22 20 69 6c 6c 65 | 67 61 6c 20 6f 70 63 6f | ." ille|gal opco|
|00001bd0| 64 65 20 64 75 72 69 6e | 67 20 66 69 6e 61 6c 69 |de durin|g finali|
|00001be0| 7a 61 74 69 6f 6e 22 0d | 09 5d 53 45 4c 45 43 54 |zation".|.]SELECT|
|00001bf0| 0d 3b 0d 0d 0d 66 61 6c | 73 65 09 76 61 6c 75 65 |.;...fal|se.value|
|00001c00| 09 69 6e 68 69 62 69 74 | 5f 66 69 6e 61 6c 69 7a |.inhibit|_finaliz|
|00001c10| 61 74 69 6f 6e 3f 0d 0d | 3a 20 46 49 4e 41 4c 49 |ation?..|: FINALI|
|00001c20| 5a 45 5f 44 45 46 4e 20 | 20 7b 20 5c 20 70 6f 73 |ZE_DEFN | { \ pos|
|00001c30| 20 6f 70 20 2d 2d 20 7d | 0d 09 69 6e 68 69 62 69 | op -- }|..inhibi|
|00001c40| 74 5f 66 69 6e 61 6c 69 | 7a 61 74 69 6f 6e 3f 20 |t_finali|zation? |
|00001c50| 20 3f 45 58 49 54 0d 09 | 63 75 72 72 2d 64 65 66 | ?EXIT..|curr-def|
|00001c60| 2d 63 6f 64 65 20 20 2d | 3e 20 70 6f 73 0d 09 42 |-code -|> pos..B|
|00001c70| 45 47 49 4e 0d 09 09 70 | 6f 73 20 43 44 50 20 3e |EGIN...p|os CDP >|
|00001c80| 3d 20 20 3f 45 58 49 54 | 0d 09 09 70 6f 73 20 63 |= ?EXIT|...pos c|
|00001c90| 40 20 20 2d 3e 20 6f 70 | 0d 09 09 6f 70 20 20 24 |@ -> op|...op $|
|00001ca0| 20 46 38 20 61 6e 64 20 | 20 24 20 42 38 20 3d 0d | F8 and | $ B8 =.|
|00001cb0| 09 09 49 46 09 70 6f 73 | 20 6f 70 20 20 66 69 78 |..IF.pos| op fix|
|00001cc0| 5f 31 5f 6f 70 0d 09 09 | 54 48 45 4e 0d 09 09 34 |_1_op...|THEN...4|
|00001cd0| 20 2b 2b 3e 20 70 6f 73 | 0d 09 41 47 41 49 4e 0d | ++> pos|..AGAIN.|
|00001ce0| 3b 0d 0d 0d 5c 20 09 09 | 3d 3d 3d 3d 3d 3d 3d 3d |;...\ ..|========|
|00001cf0| 3d 20 20 43 4f 4d 50 49 | 4c 41 54 49 4f 4e 20 4f |= COMPI|LATION O|
|00001d00| 46 20 43 41 4c 4c 53 2c | 20 45 58 49 54 20 65 74 |F CALLS,| EXIT et|
|00001d10| 63 2e 20 20 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |c. ====|=======.|
|00001d20| 0d 66 61 6c 73 65 09 76 | 61 6c 75 65 09 4c 45 41 |.false.v|alue.LEA|
|00001d30| 46 3f 09 09 09 5c 20 6e | 6f 72 6d 61 6c 6c 79 20 |F?...\ n|ormally |
|00001d40| 73 65 74 20 74 72 75 65 | 20 61 74 20 63 6f 6c 6f |set true| at colo|
|00001d50| 6e 20 74 69 6d 65 2c 20 | 74 68 65 6e 20 73 65 74 |n time, |then set|
|00001d60| 20 66 61 6c 73 65 0d 09 | 09 09 09 09 09 09 09 5c | false..|.......\|
|00001d70| 20 20 77 68 65 6e 20 77 | 65 20 64 6f 20 61 20 63 | when w|e do a c|
|00001d80| 61 6c 6c 2e 20 20 54 68 | 75 73 20 61 74 20 73 65 |all. Th|us at se|
|00001d90| 6d 69 63 6f 6c 6f 6e 20 | 74 69 6d 65 2c 0d 09 09 |micolon |time,...|
|00001da0| 09 09 09 09 09 09 5c 20 | 20 69 66 20 69 74 27 73 |......\ | if it's|
|00001db0| 20 73 74 69 6c 6c 20 74 | 72 75 65 2c 20 77 65 20 | still t|rue, we |
|00001dc0| 6b 6e 6f 77 20 74 68 69 | 73 20 77 61 73 20 61 20 |know thi|s was a |
|00001dd0| 6c 65 61 66 0d 09 09 09 | 09 09 09 09 09 5c 20 20 |leaf....|.....\ |
|00001de0| 72 6f 75 74 69 6e 65 2e | 0d 0d 5c 20 66 61 6c 73 |routine.|..\ fals|
|00001df0| 65 09 76 61 6c 75 65 09 | 32 4c 45 56 3f 09 09 09 |e.value.|2LEV?...|
|00001e00| 5c 20 77 65 20 6d 61 79 | 20 75 73 65 20 74 68 69 |\ we may| use thi|
|00001e10| 73 20 73 69 6d 69 6c 61 | 72 6c 79 2c 20 74 6f 20 |s simila|rly, to |
|00001e20| 64 65 74 65 63 74 20 64 | 65 66 6e 73 0d 09 09 09 |detect d|efns....|
|00001e30| 09 09 09 09 09 5c 20 20 | 77 68 69 63 68 20 61 72 |.....\ |which ar|
|00001e40| 65 6e 27 74 20 6c 65 61 | 76 65 73 2c 20 62 75 74 |en't lea|ves, but|
|00001e50| 20 6f 6e 6c 79 20 63 61 | 6c 6c 20 6c 65 61 76 65 | only ca|ll leave|
|00001e60| 73 2e 0d 09 09 09 09 09 | 09 09 09 5c 20 42 75 74 |s.......|...\ But|
|00001e70| 20 77 65 27 72 65 20 6e | 6f 74 20 75 73 69 6e 67 | we're n|ot using|
|00001e80| 20 69 74 20 79 65 74 2e | 0d 0d 66 61 6c 73 65 09 | it yet.|..false.|
|00001e90| 76 61 6c 75 65 09 43 54 | 52 5f 43 4c 4f 42 42 45 |value.CT|R_CLOBBE|
|00001ea0| 52 45 44 3f 09 5c 20 77 | 65 20 75 73 65 20 74 68 |RED?.\ w|e use th|
|00001eb0| 69 73 20 69 6e 20 64 65 | 63 69 64 69 6e 67 20 69 |is in de|ciding i|
|00001ec0| 66 20 77 65 20 63 61 6e | 20 75 73 65 0d 09 09 09 |f we can| use....|
|00001ed0| 09 09 09 09 09 5c 20 20 | 61 20 62 72 61 6e 63 68 |.....\ |a branch|
|00001ee0| 20 6f 6e 20 74 68 65 20 | 63 74 72 20 69 6e 20 44 | on the |ctr in D|
|00001ef0| 4f 2e 2e 4c 4f 4f 50 20 | 61 6e 64 0d 09 09 09 09 |O..LOOP |and.....|
|00001f00| 09 09 09 09 5c 20 20 46 | 4f 52 2e 2e 4e 45 58 54 |....\ F|OR..NEXT|
|00001f10| 2e 0d 0d 30 09 09 76 61 | 6c 75 65 09 46 50 5f 46 |...0..va|lue.FP_F|
|00001f20| 4c 41 47 53 09 09 5c 20 | 77 65 20 6b 65 65 70 20 |LAGS..\ |we keep |
|00001f30| 74 68 65 73 65 20 68 65 | 72 65 20 74 69 6c 6c 20 |these he|re till |
|00001f40| 73 65 6d 69 63 6f 6c 6f | 6e 20 74 69 6d 65 2c 20 |semicolo|n time, |
|00001f50| 77 68 65 6e 0d 09 09 09 | 09 09 09 09 09 5c 20 20 |when....|.....\ |
|00001f60| 77 65 20 6d 6f 76 65 20 | 74 68 65 20 64 65 66 69 |we move |the defi|
|00001f70| 6e 69 74 69 6f 6e 20 61 | 6e 64 20 70 75 74 20 74 |nition a|nd put t|
|00001f80| 68 65 6d 20 69 6e 20 74 | 68 65 20 0d 09 09 09 09 |hem in t|he .....|
|00001f90| 09 09 09 09 5c 20 20 72 | 69 67 68 74 20 70 6c 61 |....\ r|ight pla|
|00001fa0| 63 65 2e 0d 0d 0d 3a 20 | 50 55 53 48 5f 4c 52 0d |ce....: |PUSH_LR.|
|00001fb0| 09 4c 52 3e 52 30 20 63 | 6f 64 65 2c 0d 09 30 20 |.LR>R0 c|ode,..0 |
|00001fc0| 73 65 6c 65 63 74 3a 20 | 47 50 52 73 20 20 52 50 |select: |GPRs RP|
|00001fd0| 5f 72 65 67 20 74 72 75 | 65 20 63 6f 6d 70 50 75 |_reg tru|e compPu|
|00001fe0| 73 68 3a 20 47 50 52 73 | 0d 3b 0d 0d 3a 20 50 55 |sh: GPRs|.;..: PU|
|00001ff0| 4c 4c 5f 4c 52 0d 09 30 | 20 73 65 6c 65 63 74 3a |LL_LR..0| select:|
|00002000| 20 47 50 52 73 0d 09 52 | 50 5f 72 65 67 20 30 20 | GPRs..R|P_reg 0 |
|00002010| 34 20 63 6f 6d 70 50 75 | 6c 6c 3a 20 47 50 52 73 |4 compPu|ll: GPRs|
|00002020| 0d 09 52 30 3e 4c 52 20 | 63 6f 64 65 2c 0d 3b 0d |..R0>LR |code,.;.|
|00002030| 0d 3a 20 4c 52 3e 54 52 | 45 47 09 09 09 5c 20 63 |.: LR>TR|EG...\ c|
|00002040| 61 6e 20 62 65 20 75 73 | 65 64 20 69 6e 20 61 20 |an be us|ed in a |
|00002050| 64 65 66 6e 20 69 66 20 | 77 65 20 6b 6e 6f 77 20 |defn if |we know |
|00002060| 77 68 61 74 20 77 65 27 | 72 65 20 64 6f 69 6e 67 |what we'|re doing|
|00002070| 0d 09 4c 52 3e 52 30 20 | 20 63 6f 64 65 2c 20 20 |..LR>R0 | code, |
|00002080| 3b 09 09 69 6d 6d 65 64 | 69 61 74 65 0d 0d 3a 20 |;..immed|iate..: |
|00002090| 54 52 45 47 3e 4c 52 0d | 09 52 30 3e 4c 52 20 20 |TREG>LR.|.R0>LR |
|000020a0| 63 6f 64 65 2c 20 20 3b | 09 09 69 6d 6d 65 64 69 |code, ;|..immedi|
|000020b0| 61 74 65 0d 0d 0d 3a 20 | 50 4c 65 6e 74 72 79 20 |ate...: |PLentry |
|000020c0| 20 7b 20 5c 20 72 65 67 | 23 20 61 64 64 72 20 2d | { \ reg|# addr -|
|000020d0| 2d 20 7d 09 09 5c 20 68 | 61 6e 64 6c 65 20 65 6e |- }..\ h|andle en|
|000020e0| 74 72 79 20 77 69 74 68 | 20 6e 61 6d 65 64 20 70 |try with| named p|
|000020f0| 61 72 6d 73 2f 6c 6f 63 | 61 6c 73 0d 0d 28 2a 20 |arms/loc|als..(* |
|00002100| 41 6c 6c 20 77 65 20 64 | 6f 20 68 65 72 65 20 69 |All we d|o here i|
|00002110| 73 20 73 65 74 20 74 68 | 65 20 66 6c 61 67 20 62 |s set th|e flag b|
|00002120| 79 74 65 73 20 66 6f 72 | 20 74 68 69 73 20 64 65 |ytes for| this de|
|00002130| 66 69 6e 69 74 69 6f 6e | 2c 20 61 6e 64 20 74 68 |finition|, and th|
|00002140| 65 20 69 6e 69 74 69 61 | 6c 0d 20 20 20 63 73 74 |e initia|l. cst|
|00002150| 6b 2e 20 20 45 76 65 72 | 79 74 68 69 6e 67 20 65 |k. Ever|ything e|
|00002160| 6c 73 65 20 69 73 20 64 | 6f 6e 65 20 62 79 20 63 |lse is d|one by c|
|00002170| 6f 6d 70 69 6c 65 5f 70 | 72 6f 6c 6f 67 2c 20 61 |ompile_p|rolog, a|
|00002180| 6e 64 20 77 65 20 64 6f | 6e 27 74 20 63 61 6c 6c |nd we do|n't call|
|00002190| 20 74 68 61 74 0d 20 20 | 20 75 6e 74 69 6c 20 74 | that. | until t|
|000021a0| 68 65 20 65 6e 64 2c 20 | 77 68 65 6e 20 77 65 20 |he end, |when we |
|000021b0| 6b 6e 6f 77 20 69 66 20 | 74 68 69 73 20 69 73 20 |know if |this is |
|000021c0| 61 20 6c 65 61 66 20 70 | 72 6f 63 20 6f 72 20 6e |a leaf p|roc or n|
|000021d0| 6f 74 2e 0d 20 20 20 57 | 65 20 64 6f 6e 27 74 20 |ot.. W|e don't |
|000021e0| 73 65 74 20 74 68 65 20 | 66 6c 61 67 20 62 79 74 |set the |flag byt|
|000021f0| 65 73 20 69 66 20 74 68 | 69 73 20 69 73 20 74 68 |es if th|is is th|
|00002200| 65 20 72 65 73 6f 6c 75 | 74 69 6f 6e 20 6f 66 20 |e resolu|tion of |
|00002210| 61 20 66 6f 72 77 61 72 | 64 0d 20 20 20 64 65 66 |a forwar|d. def|
|00002220| 69 6e 69 74 69 6f 6e 2c | 20 73 69 6e 63 65 20 74 |inition,| since t|
|00002230| 68 65 20 68 65 61 64 65 | 72 27 73 20 62 65 65 6e |he heade|r's been|
|00002240| 20 66 69 78 65 64 20 75 | 70 20 61 6c 72 65 61 64 | fixed u|p alread|
|00002250| 79 20 28 61 6e 64 20 69 | 73 6e 27 74 20 68 65 72 |y (and i|sn't her|
|00002260| 65 20 61 6e 79 77 61 79 | 29 2e 0d 20 20 20 28 54 |e anyway|).. (T|
|00002270| 68 69 73 20 69 73 20 68 | 61 6e 64 6c 65 64 20 69 |his is h|andled i|
|00002280| 6e 20 71 70 43 6f 6e 64 | 2e 29 0d 20 20 20 0d 20 |n qpCond|.). . |
|00002290| 20 20 54 68 65 20 66 6c | 61 67 20 62 79 74 65 73 | The fl|ag bytes|
|000022a0| 20 61 72 65 20 64 65 73 | 63 72 69 62 65 64 20 69 | are des|cribed i|
|000022b0| 6e 20 74 68 65 20 63 6f | 6d 6d 65 6e 74 73 20 6e |n the co|mments n|
|000022c0| 65 61 72 20 74 68 65 20 | 73 74 61 72 74 20 6f 66 |ear the |start of|
|000022d0| 20 63 67 31 2e 0d 2a 29 | 0d 09 66 6f 72 77 61 72 | cg1..*)|..forwar|
|000022e0| 64 3f 0d 09 4e 49 46 0d | 09 09 63 75 72 72 2d 64 |d?..NIF.|..curr-d|
|000022f0| 65 66 20 32 20 2d 20 20 | 2d 3e 20 61 64 64 72 0d |ef 2 - |-> addr.|
|00002300| 09 09 23 50 20 20 31 35 | 20 61 6e 64 20 20 34 20 |..#P 15| and 4 |
|00002310| 3c 3c 0d 09 09 23 50 4c | 20 31 35 20 61 6e 64 20 |<<...#PL| 15 and |
|00002320| 20 6f 72 0d 09 09 61 64 | 64 72 20 31 2b 20 63 21 | or...ad|dr 1+ c!|
|00002330| 0d 09 09 0d 09 09 23 46 | 50 09 20 31 35 20 61 6e |......#F|P. 15 an|
|00002340| 64 20 20 34 20 3c 3c 0d | 09 09 23 46 50 4c 20 31 |d 4 <<.|..#FPL 1|
|00002350| 35 20 61 6e 64 20 6f 72 | 0d 09 09 6f 72 3e 20 66 |5 and or|...or> f|
|00002360| 70 5f 66 6c 61 67 73 0d | 09 54 48 45 4e 0d 5c 20 |p_flags.|.THEN.\ |
|00002370| 6e 6f 77 20 74 68 65 20 | 69 6e 69 74 69 61 6c 20 |now the |initial |
|00002380| 63 73 74 6b 20 69 73 20 | 64 69 66 66 65 72 65 6e |cstk is |differen|
|00002390| 74 20 74 6f 20 62 65 66 | 6f 72 65 2c 20 69 66 20 |t to bef|ore, if |
|000023a0| 74 68 65 72 65 20 77 65 | 72 65 20 70 61 72 6d 73 |there we|re parms|
|000023b0| 0d 09 23 50 20 20 67 70 | 72 5f 63 61 6c 6c 5f 63 |..#P gp|r_call_c|
|000023c0| 6e 74 20 6d 61 78 20 20 | 23 50 20 2d 20 20 73 65 |nt max |#P - se|
|000023d0| 74 75 70 5f 63 73 74 6b | 0d 09 23 46 50 20 66 70 |tup_cstk|..#FP fp|
|000023e0| 72 5f 63 61 6c 6c 5f 63 | 6e 74 20 6d 61 78 20 20 |r_call_c|nt max |
|000023f0| 23 46 50 20 2d 20 73 65 | 74 75 70 5f 66 63 73 74 |#FP - se|tup_fcst|
|00002400| 6b 0d 3b 0d 0d 0d 3a 20 | 43 4f 4d 50 49 4c 45 5f |k.;...: |COMPILE_|
|00002410| 50 52 4f 4c 4f 47 26 45 | 50 49 4c 4f 47 20 20 7b |PROLOG&E|PILOG {|
|00002420| 20 23 67 70 72 73 5f 74 | 6f 5f 73 61 76 65 20 23 | #gprs_t|o_save #|
|00002430| 66 70 72 73 5f 74 6f 5f | 73 61 76 65 20 5c 20 73 |fprs_to_|save \ s|
|00002440| 76 43 44 50 20 73 72 63 | 20 64 73 74 20 6f 66 66 |vCDP src| dst off|
|00002450| 73 20 6c 65 6e 20 2d 2d | 20 7d 0d 0d 09 6c 65 61 |s len --| }...lea|
|00002460| 66 3f 09 09 5c 20 6c 65 | 61 66 20 70 72 6f 63 73 |f?..\ le|af procs|
|00002470| 20 64 6f 6e 27 74 20 73 | 61 76 65 2f 72 65 73 74 | don't s|ave/rest|
|00002480| 6f 72 65 20 61 6e 79 74 | 68 69 6e 67 20 2d 20 69 |ore anyt|hing - i|
|00002490| 74 27 73 20 61 6c 6c 20 | 64 6f 6e 65 20 69 6e 20 |t's all |done in |
|000024a0| 74 68 65 20 63 61 6c 6c | 65 72 2e 0d 09 09 09 09 |the call|er......|
|000024b0| 5c 20 53 6f 20 74 68 65 | 72 65 27 73 20 6e 6f 20 |\ So the|re's no |
|000024c0| 70 72 6f 6c 6f 67 20 6f | 72 20 65 70 69 6c 6f 67 |prolog o|r epilog|
|000024d0| 2e 20 20 48 65 72 65 20 | 77 65 20 6a 75 73 74 20 |. Here |we just |
|000024e0| 68 61 76 65 20 74 6f 20 | 69 6e 69 74 69 61 6c 69 |have to |initiali|
|000024f0| 7a 65 0d 09 09 09 09 5c | 20 61 20 63 6f 75 70 6c |ze.....\| a coupl|
|00002500| 65 20 6f 66 20 76 61 6c | 75 65 73 20 77 68 69 63 |e of val|ues whic|
|00002510| 68 20 74 68 65 20 63 61 | 6c 6c 65 72 20 6e 65 65 |h the ca|ller nee|
|00002520| 64 73 2c 20 74 68 65 6e | 20 67 65 74 20 6f 75 74 |ds, then| get out|
|00002530| 2e 0d 09 49 46 0d 09 09 | 63 75 72 72 2d 64 65 66 |...IF...|curr-def|
|00002540| 20 2d 3e 20 63 75 72 72 | 2d 64 65 66 2d 63 6f 64 | -> curr|-def-cod|
|00002550| 65 0d 09 09 43 44 50 20 | 2d 3e 20 65 78 69 74 5f |e...CDP |-> exit_|
|00002560| 6c 6f 63 0d 09 09 45 58 | 49 54 0d 09 54 48 45 4e |loc...EX|IT..THEN|
|00002570| 0d 0d 5c 20 4e 6f 77 20 | 77 65 20 77 6f 72 6b 20 |..\ Now |we work |
|00002580| 6f 75 74 20 74 68 65 20 | 70 72 6f 6c 6f 67 20 73 |out the |prolog s|
|00002590| 69 7a 65 2c 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |ize, whi|ch will |
|000025a0| 62 65 20 74 68 65 20 64 | 69 73 74 61 6e 63 65 20 |be the d|istance |
|000025b0| 77 65 20 6e 65 65 64 20 | 74 6f 0d 5c 20 6d 6f 76 |we need |to.\ mov|
|000025c0| 65 20 74 68 65 20 63 6f | 64 65 20 75 70 20 6d 65 |e the co|de up me|
|000025d0| 6d 6f 72 79 20 74 6f 20 | 6d 61 6b 65 20 72 6f 6f |mory to |make roo|
|000025e0| 6d 20 66 6f 72 20 74 68 | 65 20 70 72 6f 6c 6f 67 |m for th|e prolog|
|000025f0| 2e 20 20 53 65 65 20 74 | 68 65 20 63 6f 6d 6d 65 |. See t|he comme|
|00002600| 6e 74 73 0d 5c 20 69 6e | 20 63 67 33 20 66 6f 72 |nts.\ in| cg3 for|
|00002610| 20 64 65 74 61 69 6c 73 | 20 6f 6e 20 74 68 65 20 | details| on the |
|00002620| 70 72 6f 6c 6f 67 2c 20 | 77 68 69 63 68 20 77 69 |prolog, |which wi|
|00002630| 6c 6c 20 6d 61 6b 65 20 | 73 65 6e 73 65 20 6f 66 |ll make |sense of|
|00002640| 20 74 68 65 73 65 0d 5c | 20 6d 61 63 68 69 6e 61 | these.\| machina|
|00002650| 74 69 6f 6e 73 2e 0d 0d | 09 6c 6f 63 61 6c 3f 0d |tions...|.local?.|
|00002660| 09 49 46 20 20 09 38 0d | 09 45 4c 53 45 09 23 67 |.IF .8.|.ELSE.#g|
|00002670| 70 72 73 5f 74 6f 5f 73 | 61 76 65 20 20 23 50 20 |prs_to_s|ave #P |
|00002680| 20 2b 20 34 2a 0d 09 09 | 09 23 66 70 72 73 5f 74 | + 4*...|.#fprs_t|
|00002690| 6f 5f 73 61 76 65 20 20 | 23 46 50 20 2b 20 34 2a |o_save |#FP + 4*|
|000026a0| 20 2b 0d 09 09 09 38 20 | 2b 0d 09 09 09 5b 20 70 | +....8 |+....[ p|
|000026b0| 70 63 3f 20 5d 20 5b 69 | 66 5d 0d 09 09 09 09 43 |pc? ] [i|f].....C|
|000026c0| 44 5f 67 70 72 23 20 49 | 46 20 20 31 32 20 2b 20 |D_gpr# I|F 12 + |
|000026d0| 20 54 48 45 4e 0d 09 09 | 09 5b 74 68 65 6e 5d 0d | THEN...|.[then].|
|000026e0| 09 6d 65 74 68 6f 64 3f | 20 49 46 20 38 20 2b 20 |.method?| IF 8 + |
|000026f0| 54 48 45 4e 09 09 5c 20 | 74 72 79 69 6e 67 20 73 |THEN..\ |trying s|
|00002700| 6f 6d 65 74 68 69 6e 67 | 20 68 65 72 65 0d 09 54 |omething| here..T|
|00002710| 48 45 4e 0d 0d 5c 09 6d | 65 74 68 6f 64 3f 20 49 |HEN..\.m|ethod? I|
|00002720| 46 20 38 20 2b 20 54 48 | 45 4e 0d 0d 09 74 65 6d |F 8 + TH|EN...tem|
|00002730| 70 4f 62 6a 5f 66 72 61 | 6d 65 73 69 7a 65 20 49 |pObj_fra|mesize I|
|00002740| 46 20 20 34 2b 20 54 48 | 45 4e 0d 09 2d 3e 20 6f |F 4+ TH|EN..-> o|
|00002750| 66 66 73 09 09 09 09 09 | 09 5c 20 6f 66 66 73 20 |ffs.....|.\ offs |
|00002760| 77 69 6c 6c 20 62 65 20 | 74 68 65 20 70 72 6f 6c |will be |the prol|
|00002770| 6f 67 20 73 69 7a 65 0d | 0d 09 66 6f 72 77 61 72 |og size.|..forwar|
|00002780| 64 3f 0d 09 49 46 09 23 | 50 20 67 70 72 5f 63 61 |d?..IF.#|P gpr_ca|
|00002790| 6c 6c 5f 63 6e 74 20 3e | 09 09 5c 20 66 6f 72 20 |ll_cnt >|..\ for |
|000027a0| 66 6f 72 77 61 72 64 20 | 64 65 66 6e 73 2c 20 69 |forward |defns, i|
|000027b0| 66 20 74 68 65 20 6e 6f | 20 6f 66 20 6e 61 6d 65 |f the no| of name|
|000027c0| 64 20 70 61 72 6d 73 0d | 09 09 49 46 09 34 20 2b |d parms.|..IF.4 +|
|000027d0| 2b 3e 20 6f 66 66 73 09 | 09 09 5c 20 20 69 73 20 |+> offs.|..\ is |
|000027e0| 67 72 65 61 74 65 72 20 | 74 68 61 6e 20 63 61 6c |greater |than cal|
|000027f0| 6c 5f 63 6e 74 2c 20 73 | 6f 6d 65 20 70 61 72 6d |l_cnt, s|ome parm|
|00002800| 73 20 77 69 6c 6c 0d 09 | 09 09 09 09 09 09 09 5c |s will..|.......\|
|00002810| 20 20 68 61 76 65 20 74 | 6f 20 62 65 20 70 75 6c | have t|o be pul|
|00002820| 6c 65 64 20 66 72 6f 6d | 20 6d 65 6d 2c 20 73 6f |led from| mem, so|
|00002830| 20 77 65 27 6c 6c 20 6e | 65 65 64 0d 09 09 09 09 | we'll n|eed.....|
|00002840| 09 09 09 09 5c 20 20 61 | 6e 20 65 78 74 72 61 20 |....\ a|n extra |
|00002850| 34 20 62 79 74 65 73 20 | 66 6f 72 20 74 68 65 20 |4 bytes |for the |
|00002860| 53 50 20 61 64 6a 75 73 | 74 6d 65 6e 74 2e 0d 09 |SP adjus|tment...|
|00002870| 09 54 48 45 4e 0d 09 09 | 23 46 50 20 66 70 72 5f |.THEN...|#FP fpr_|
|00002880| 63 61 6c 6c 5f 63 6e 74 | 20 3e 0d 09 09 49 46 09 |call_cnt| >...IF.|
|00002890| 34 20 2b 2b 3e 20 6f 66 | 66 73 0d 09 09 54 48 45 |4 ++> of|fs...THE|
|000028a0| 4e 0d 09 54 48 45 4e 0d | 0d 09 63 75 72 72 2d 64 |N..THEN.|..curr-d|
|000028b0| 65 66 20 2d 3e 20 73 72 | 63 0d 09 73 72 63 20 6f |ef -> sr|c..src o|
|000028c0| 66 66 73 20 2b 20 20 2d | 3e 20 64 73 74 0d 09 6f |ffs + -|> dst..o|
|000028d0| 66 66 73 0d 09 49 46 0d | 09 09 43 44 50 20 73 72 |ffs..IF.|..CDP sr|
|000028e0| 63 20 2d 20 2d 3e 20 6c | 65 6e 0d 09 09 73 72 63 |c - -> l|en...src|
|000028f0| 20 64 73 74 20 6c 65 6e | 20 20 6d 6f 76 65 0d 09 | dst len| move..|
|00002900| 09 73 72 63 20 6f 66 66 | 73 20 65 72 61 73 65 09 |.src off|s erase.|
|00002910| 09 5c 20 64 65 62 75 67 | 67 69 6e 67 20 6f 6e 6c |.\ debug|ging onl|
|00002920| 79 0d 09 09 6f 66 66 73 | 20 2b 2b 3e 20 43 44 50 |y...offs| ++> CDP|
|00002930| 0d 09 09 6f 66 66 73 20 | 2b 2b 3e 20 64 69 73 74 |...offs |++> dist|
|00002940| 61 6e 63 65 5f 63 6f 64 | 65 5f 6d 6f 76 65 64 0d |ance_cod|e_moved.|
|00002950| 09 54 48 45 4e 0d 09 43 | 44 50 20 2d 3e 20 73 76 |.THEN..C|DP -> sv|
|00002960| 43 44 50 20 20 73 72 63 | 20 2d 3e 20 43 44 50 0d |CDP src| -> CDP.|
|00002970| 09 0d 09 69 6e 69 74 5f | 47 50 52 73 20 20 69 6e |...init_|GPRs in|
|00002980| 69 74 5f 46 50 52 73 09 | 09 09 5c 20 61 6c 6c 20 |it_FPRs.|..\ all |
|00002990| 72 65 67 73 20 69 6e 76 | 61 6c 69 64 20 61 74 20 |regs inv|alid at |
|000029a0| 74 68 65 20 73 74 61 72 | 74 21 0d 09 6c 6f 63 61 |the star|t!..loca|
|000029b0| 6c 3f 0d 09 49 46 09 30 | 20 30 20 30 20 30 0d 09 |l?..IF.0| 0 0 0..|
|000029c0| 45 4c 53 45 0d 09 09 23 | 67 70 72 73 5f 74 6f 5f |ELSE...#|gprs_to_|
|000029d0| 73 61 76 65 20 23 50 20 | 20 23 66 70 72 73 5f 74 |save #P | #fprs_t|
|000029e0| 6f 5f 73 61 76 65 20 23 | 46 50 0d 09 54 48 45 4e |o_save #|FP..THEN|
|000029f0| 0d 09 66 61 6c 73 65 20 | 20 6d 65 74 68 6f 64 3f |..false | method?|
|00002a00| 20 20 63 6f 6d 70 69 6c | 65 5f 70 72 6f 6c 6f 67 | compil|e_prolog|
|00002a10| 0d 0d 09 73 76 43 44 50 | 20 2d 3e 20 43 44 50 0d |...svCDP| -> CDP.|
|00002a20| 09 43 44 50 20 2d 3e 20 | 65 78 69 74 5f 6c 6f 63 |.CDP -> |exit_loc|
|00002a30| 09 09 09 09 09 5c 20 45 | 58 49 54 73 20 72 65 73 |.....\ E|XITs res|
|00002a40| 6f 6c 76 65 20 74 6f 20 | 68 65 72 65 0d 09 66 61 |olve to |here..fa|
|00002a50| 6c 73 65 20 20 6d 65 74 | 68 6f 64 3f 20 20 63 6f |lse met|hod? co|
|00002a60| 6d 70 69 6c 65 5f 65 70 | 69 6c 6f 67 0d 0d 5c 20 |mpile_ep|ilog..\ |
|00002a70| 6e 6f 77 20 6f 75 72 20 | 64 65 66 61 75 6c 74 20 |now our |default |
|00002a80| 65 6e 74 72 79 20 70 6f | 69 6e 74 20 66 6f 72 20 |entry po|int for |
|00002a90| 74 68 65 20 77 68 6f 6c | 65 20 70 72 6f 67 72 61 |the whol|e progra|
|00002aa0| 6d 20 69 73 20 73 74 72 | 61 69 67 68 74 20 61 66 |m is str|aight af|
|00002ab0| 74 65 72 20 74 68 65 0d | 5c 20 20 70 72 6f 6c 6f |ter the.|\ prolo|
|00002ac0| 67 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 64 65 |g of the| last de|
|00002ad0| 66 69 6e 69 74 69 6f 6e | 20 63 6f 6d 70 69 6c 65 |finition| compile|
|00002ae0| 64 20 28 73 69 6e 63 65 | 20 6f 6e 20 69 6e 69 74 |d (since| on init|
|00002af0| 69 61 6c 20 65 6e 74 72 | 79 20 74 68 65 0d 5c 20 |ial entr|y the.\ |
|00002b00| 20 52 50 20 69 73 6e 27 | 74 20 73 65 74 20 75 70 | RP isn'|t set up|
|00002b10| 2c 20 73 6f 20 77 65 20 | 6d 75 73 74 6e 27 74 20 |, so we |mustn't |
|00002b20| 65 78 65 63 75 74 65 20 | 61 20 70 72 6f 6c 6f 67 |execute |a prolog|
|00002b30| 21 29 0d 0d 09 69 6e 69 | 74 5f 65 6e 74 72 79 20 |!)...ini|t_entry |
|00002b40| 49 46 20 20 6f 66 66 73 | 20 2b 2b 3e 20 69 6e 69 |IF offs| ++> ini|
|00002b50| 74 5f 65 6e 74 72 79 20 | 20 54 48 45 4e 0d 09 64 |t_entry | THEN..d|
|00002b60| 73 74 20 2d 3e 20 63 75 | 72 72 2d 64 65 66 2d 63 |st -> cu|rr-def-c|
|00002b70| 6f 64 65 0d 3b 0d 0d 0d | 28 2a 20 43 6f 6c 6f 6e |ode.;...|(* Colon|
|00002b80| 20 75 73 65 73 20 61 20 | 6e 65 77 20 68 65 61 64 | uses a |new head|
|00002b90| 65 72 20 66 6f 72 6d 61 | 74 20 69 6e 63 6f 72 70 |er forma|t incorp|
|00002ba0| 6f 72 61 74 69 6e 67 20 | 74 77 6f 20 66 6c 61 67 |orating |two flag|
|00002bb0| 20 62 79 74 65 73 20 69 | 6e 20 61 64 64 69 74 69 | bytes i|n additi|
|00002bc0| 6f 6e 20 74 6f 0d 20 20 | 20 77 68 61 74 20 77 65 |on to. | what we|
|00002bd0| 20 75 73 65 20 6f 6e 20 | 74 68 65 20 36 38 6b 2c | use on |the 68k,|
|00002be0| 20 61 6e 64 20 61 6c 73 | 6f 20 68 61 73 20 74 6f | and als|o has to|
|00002bf0| 20 6f 62 73 65 72 76 65 | 20 34 2d 62 79 74 65 20 | observe| 4-byte |
|00002c00| 61 6c 69 67 6e 6d 65 6e | 74 20 66 6f 72 20 74 68 |alignmen|t for th|
|00002c10| 65 0d 20 20 20 63 6f 64 | 65 2e 20 20 53 65 65 20 |e. cod|e. See |
|00002c20| 63 6f 6d 6d 65 6e 74 73 | 20 61 74 20 74 68 65 20 |comments| at the |
|00002c30| 73 74 61 72 74 20 6f 66 | 20 63 67 31 20 66 6f 72 |start of| cg1 for|
|00002c40| 20 64 65 74 61 69 6c 73 | 2e 0d 2a 29 0d 0d 3a 20 | details|..*)..: |
|00002c50| 50 50 43 5f 45 4e 54 52 | 59 20 20 7b 20 66 77 64 |PPC_ENTR|Y { fwd|
|00002c60| 3f 20 2d 2d 20 33 30 30 | 20 7d 0d 09 3f 65 78 65 |? -- 300| }..?exe|
|00002c70| 63 0d 09 66 77 64 3f 20 | 2d 3e 20 66 6f 72 77 61 |c..fwd? |-> forwa|
|00002c80| 72 64 3f 09 09 09 5c 20 | 74 72 61 6e 73 66 65 72 |rd?...\ |transfer|
|00002c90| 20 74 6f 20 6f 75 72 20 | 67 6c 6f 62 61 6c 20 73 | to our |global s|
|00002ca0| 6f 20 77 65 27 6c 6c 0d | 09 09 09 09 09 09 09 09 |o we'll.|........|
|00002cb0| 5c 20 20 74 61 6b 65 20 | 73 70 65 63 69 61 6c 20 |\ take |special |
|00002cc0| 61 63 74 69 6f 6e 20 69 | 66 20 77 65 20 67 65 74 |action i|f we get|
|00002cd0| 20 7b 20 2e 2e 2e 20 7d | 0d 09 43 44 50 20 2d 3e | { ... }|..CDP ->|
|00002ce0| 20 62 61 63 6b 73 74 6f | 70 5f 43 44 50 0d 09 43 | backsto|p_CDP..C|
|00002cf0| 44 50 20 2d 3e 20 66 65 | 74 63 68 5f 62 61 63 6b |DP -> fe|tch_back|
|00002d00| 73 74 6f 70 0d 0d 09 30 | 20 2d 3e 20 62 61 73 69 |stop...0| -> basi|
|00002d10| 63 5f 62 6c 6f 63 6b 5f | 73 74 61 72 74 09 09 5c |c_block_|start..\|
|00002d20| 20 74 68 65 20 69 64 65 | 61 20 69 73 20 74 68 61 | the ide|a is tha|
|00002d30| 74 20 72 65 67 73 20 70 | 61 73 73 65 64 20 69 6e |t regs p|assed in|
|00002d40| 20 77 69 6c 6c 0d 09 09 | 09 09 09 09 09 09 5c 20 | will...|......\ |
|00002d50| 20 68 61 76 65 20 30 20 | 69 6e 20 74 68 65 69 72 | have 0 |in their|
|00002d60| 20 6f 70 43 44 50 20 66 | 69 65 6c 64 73 2c 20 61 | opCDP f|ields, a|
|00002d70| 6e 64 20 49 20 0d 09 09 | 09 09 09 09 09 09 5c 20 |nd I ...|......\ |
|00002d80| 20 64 6f 6e 27 74 20 77 | 61 6e 74 20 74 6f 20 62 | don't w|ant to b|
|00002d90| 6c 6f 63 6b 20 63 61 73 | 63 61 64 65 73 0d 09 09 |lock cas|cades...|
|00002da0| 09 09 09 09 09 09 5c 20 | 20 75 6e 6e 65 63 65 73 |......\ | unneces|
|00002db0| 73 61 72 69 6c 79 2e 20 | 20 43 61 6c 6c 69 6e 67 |sarily. | Calling|
|00002dc0| 20 74 68 65 20 62 61 73 | 69 63 20 62 6c 6f 63 6b | the bas|ic block|
|00002dd0| 0d 09 09 09 09 09 09 09 | 09 5c 20 20 73 74 61 72 |........|.\ star|
|00002de0| 74 20 7a 65 72 6f 20 69 | 73 20 61 70 70 61 72 65 |t zero i|s appare|
|00002df0| 6e 74 6c 79 20 68 61 72 | 6d 6c 65 73 73 2e 0d 09 |ntly har|mless...|
|00002e00| 30 20 2d 3e 20 6d 61 78 | 5f 63 61 6c 6c 65 64 5f |0 -> max|_called_|
|00002e10| 23 50 4c 0d 09 30 20 2d | 3e 20 6d 61 78 5f 63 61 |#PL..0 -|> max_ca|
|00002e20| 6c 6c 65 64 5f 23 46 50 | 4c 0d 09 30 20 2d 3e 20 |lled_#FP|L..0 -> |
|00002e30| 73 74 6b 5f 6f 66 66 73 | 65 74 20 20 30 20 2d 3e |stk_offs|et 0 ->|
|00002e40| 20 64 69 73 74 61 6e 63 | 65 5f 63 6f 64 65 5f 6d | distanc|e_code_m|
|00002e50| 6f 76 65 64 0d 5c 20 5b | 20 70 70 63 3f 20 5d 20 |oved.\ [| ppc? ] |
|00002e60| 5b 69 66 5d 20 20 30 20 | 2d 3e 20 43 44 5f 67 70 |[if] 0 |-> CD_gp|
|00002e70| 72 23 20 20 5b 74 68 65 | 6e 5d 0d 09 66 61 6c 73 |r# [the|n]..fals|
|00002e80| 65 20 2d 3e 20 77 69 6c | 6c 5f 73 6b 69 70 3f 0d |e -> wil|l_skip?.|
|00002e90| 09 66 61 6c 73 65 20 2d | 3e 20 63 74 72 5f 63 6c |.false -|> ctr_cl|
|00002ea0| 6f 62 62 65 72 65 64 3f | 0d 09 30 20 2d 3e 20 66 |obbered?|..0 -> f|
|00002eb0| 70 5f 66 6c 61 67 73 0d | 09 63 6c 65 61 72 3a 20 |p_flags.|.clear: |
|00002ec0| 65 71 5f 72 61 6e 67 65 | 73 20 20 63 6c 65 61 72 |eq_range|s clear|
|00002ed0| 3a 20 63 6f 6e 73 74 5f | 64 61 74 61 0d 0d 09 67 |: const_|data...g|
|00002ee0| 70 72 5f 63 61 6c 6c 5f | 63 6e 74 20 73 65 74 75 |pr_call_|cnt setu|
|00002ef0| 70 5f 63 73 74 6b 09 09 | 09 5c 20 77 69 6c 6c 20 |p_cstk..|.\ will |
|00002f00| 62 65 20 72 65 64 6f 6e | 65 20 69 66 20 77 65 20 |be redon|e if we |
|00002f10| 67 65 74 20 7b 20 2e 2e | 2e 20 7d 0d 09 66 70 72 |get { ..|. }..fpr|
|00002f20| 5f 63 61 6c 6c 5f 63 6e | 74 20 73 65 74 75 70 5f |_call_cn|t setup_|
|00002f30| 66 63 73 74 6b 0d 09 66 | 77 64 3f 0d 09 49 46 09 |fcstk..f|wd?..IF.|
|00002f40| 09 66 61 6c 73 65 0d 09 | 45 4c 53 45 09 6f 70 74 |.false..|ELSE.opt|
|00002f50| 69 6d 69 7a 65 5f 6c 65 | 61 66 5f 63 61 6c 6c 73 |imize_le|af_calls|
|00002f60| 3f 0d 09 54 48 45 4e 20 | 20 2d 3e 20 6c 65 61 66 |?..THEN | -> leaf|
|00002f70| 3f 0d 09 09 09 09 5c 20 | 6f 6e 6c 79 20 73 65 74 |?.....\ |only set|
|00002f80| 20 6c 65 61 66 3f 20 66 | 6c 61 67 20 69 66 20 6f | leaf? f|lag if o|
|00002f90| 70 74 69 6d 69 7a 69 6e | 67 20 6c 65 61 66 20 63 |ptimizin|g leaf c|
|00002fa0| 61 6c 6c 73 2c 20 61 6e | 64 20 74 68 69 73 20 69 |alls, an|d this i|
|00002fb0| 73 6e 27 74 0d 09 09 09 | 09 5c 20 20 61 20 66 6f |sn't....|.\ a fo|
|00002fc0| 72 77 61 72 64 20 64 65 | 66 69 6e 69 74 69 6f 6e |rward de|finition|
|00002fd0| 0d 5c 09 30 20 3e 73 69 | 7a 65 3a 20 63 6f 6e 74 |.\.0 >si|ze: cont|
|00002fe0| 72 6f 6c 5f 73 74 6b 20 | 20 30 20 3e 73 69 7a 65 |rol_stk | 0 >size|
|00002ff0| 3a 20 63 6f 6e 74 72 6f | 6c 5f 66 6c 61 67 73 0d |: contro|l_flags.|
|00003000| 09 2d 31 20 2d 3e 20 67 | 70 72 5f 72 74 6e 5f 63 |.-1 -> g|pr_rtn_c|
|00003010| 6e 74 09 09 5c 20 6d 65 | 61 6e 73 20 77 65 20 68 |nt..\ me|ans we h|
|00003020| 61 76 65 6e 27 74 20 73 | 65 74 20 69 74 73 20 73 |aven't s|et its s|
|00003030| 70 65 63 69 66 69 63 20 | 76 61 6c 75 65 20 79 65 |pecific |value ye|
|00003040| 74 0d 09 2d 31 20 2d 3e | 20 66 70 72 5f 72 74 6e |t..-1 ->| fpr_rtn|
|00003050| 5f 63 6e 74 0d 0d 5c 09 | 72 65 6c 65 61 73 65 3a |_cnt..\.|release:|
|00003060| 20 63 6f 6e 73 74 5f 64 | 61 74 61 20 20 6e 65 77 | const_d|ata new|
|00003070| 3a 20 63 6f 6e 73 74 5f | 64 61 74 61 0d 09 30 20 |: const_|data..0 |
|00003080| 2d 3e 20 73 74 6b 5f 6f | 66 66 73 65 74 0d 5b 20 |-> stk_o|ffset.[ |
|00003090| 50 50 43 3f 20 5d 0d 5b | 49 46 5d 0d 09 2d 31 20 |PPC? ].[|IF]..-1 |
|000030a0| 2d 3e 20 73 74 61 74 65 | 09 09 5c 20 73 61 6d 65 |-> state|..\ same|
|000030b0| 20 61 73 20 70 6f 73 74 | 70 6f 6e 65 20 5d 20 2d | as post|pone ] -|
|000030c0| 20 74 68 65 20 6f 6e 6c | 79 20 74 68 69 6e 67 20 | the onl|y thing |
|000030d0| 77 65 20 72 65 61 6c 6c | 79 0d 09 09 09 09 09 5c |we reall|y......\|
|000030e0| 20 20 6e 65 65 64 20 66 | 72 6f 6d 20 74 68 65 20 | need f|rom the |
|000030f0| 36 38 6b 20 28 3a 29 0d | 5b 45 4c 53 45 5d 0d 09 |68k (:).|[ELSE]..|
|00003100| 28 3a 29 0d 5b 54 48 45 | 4e 5d 0d 09 43 44 50 20 |(:).[THE|N]..CDP |
|00003110| 2d 3e 20 63 75 72 72 2d | 64 65 66 09 09 09 09 5c |-> curr-|def....\|
|00003120| 20 74 68 65 20 65 6e 74 | 72 79 20 70 72 6f 6c 6f | the ent|ry prolo|
|00003130| 67 20 67 65 74 73 20 61 | 64 64 65 64 20 6c 61 74 |g gets a|dded lat|
|00003140| 65 72 0d 09 33 30 30 09 | 09 09 09 09 09 09 5c 20 |er..300.|......\ |
|00003150| 73 65 63 75 72 69 74 79 | 20 6d 61 72 6b 65 72 0d |security| marker.|
|00003160| 3b 0d 0d 0d 50 50 43 3f | 0d 5b 49 46 5d 0d 3a 20 |;...PPC?|.[IF].: |
|00003170| 3a 0d 09 43 44 50 20 2d | 3e 20 6c 61 73 74 5f 63 |:..CDP -|> last_c|
|00003180| 6f 6c 6f 6e 5f 64 65 66 | 6e 09 09 5c 20 75 73 65 |olon_def|n..\ use|
|00003190| 64 20 62 79 20 63 6f 6d | 70 69 6c 65 5f 63 61 6c |d by com|pile_cal|
|000031a0| 6c 20 69 6e 20 63 68 65 | 63 6b 69 6e 67 20 77 68 |l in che|cking wh|
|000031b0| 65 72 65 0d 09 09 09 09 | 09 09 09 09 5c 20 20 61 |ere.....|....\ a|
|000031c0| 20 63 61 6c 6c 20 69 73 | 20 63 6f 6d 69 6e 67 20 | call is| coming |
|000031d0| 66 72 6f 6d 0d 09 43 44 | 50 20 2d 3e 20 63 6f 6e |from..CD|P -> con|
|000031e0| 73 74 5f 64 61 74 61 5f | 73 74 61 72 74 0d 09 6c |st_data_|start..l|
|000031f0| 6f 63 61 6c 3f 20 4e 49 | 46 20 20 43 44 50 20 2d |ocal? NI|F CDP -|
|00003200| 3e 20 43 44 5f 67 70 72 | 5f 6c 6f 63 20 20 54 48 |> CD_gpr|_loc TH|
|00003210| 45 4e 0d 09 31 73 74 5f | 64 65 66 6e 20 4e 49 46 |EN..1st_|defn NIF|
|00003220| 20 20 43 44 50 20 2d 3e | 20 31 73 74 5f 64 65 66 | CDP ->| 1st_def|
|00003230| 6e 20 20 54 48 45 4e 0d | 09 70 70 63 5f 68 65 61 |n THEN.|.ppc_hea|
|00003240| 64 65 72 0d 09 24 20 42 | 45 30 30 30 30 30 30 20 |der..$ B|E000000 |
|00003250| 63 6f 64 65 2c 09 09 5c | 20 68 61 6e 64 6c 65 72 |code,..\| handler|
|00003260| 20 63 6f 64 65 20 66 6f | 72 20 50 50 43 20 63 6f | code fo|r PPC co|
|00003270| 6c 6f 6e 20 64 65 66 6e | 73 2c 0d 09 09 09 09 09 |lon defn|s,......|
|00003280| 09 09 5c 20 20 61 6e 64 | 20 69 6e 69 74 69 61 6c |..\ and| initial|
|00003290| 20 66 6c 61 67 20 62 79 | 74 65 73 0d 09 66 61 6c | flag by|tes..fal|
|000032a0| 73 65 20 2d 3e 20 6d 65 | 74 68 6f 64 3f 0d 09 66 |se -> me|thod?..f|
|000032b0| 61 6c 73 65 20 2d 3e 20 | 6e 6f 6e 61 6d 65 3f 0d |alse -> |noname?.|
|000032c0| 09 30 20 3e 73 69 7a 65 | 3a 20 63 6f 6e 74 72 6f |.0 >size|: contro|
|000032d0| 6c 5f 73 74 6b 20 20 30 | 20 3e 73 69 7a 65 3a 20 |l_stk 0| >size: |
|000032e0| 63 6f 6e 74 72 6f 6c 5f | 66 6c 61 67 73 0d 09 66 |control_|flags..f|
|000032f0| 61 6c 73 65 20 70 70 63 | 5f 65 6e 74 72 79 09 09 |alse ppc|_entry..|
|00003300| 09 5c 20 68 61 6e 64 6c | 65 20 70 70 63 20 70 72 |.\ handl|e ppc pr|
|00003310| 6f 63 20 65 6e 74 72 79 | 0d 09 70 6f 73 74 70 6f |oc entry|..postpo|
|00003320| 6e 65 20 68 69 64 65 09 | 09 09 5c 20 6e 65 77 20 |ne hide.|..\ new |
|00003330| 77 6f 72 64 20 69 73 20 | 68 69 64 64 65 6e 20 75 |word is |hidden u|
|00003340| 6e 74 69 6c 20 64 65 66 | 6e 20 65 6e 64 0d 3b 09 |ntil def|n end.;.|
|00003350| 09 70 70 63 5f 69 6d 6d | 65 64 69 61 74 65 0d 0d |.ppc_imm|ediate..|
|00003360| 0d 3a 20 3a 4e 4f 4e 41 | 4d 45 20 20 28 20 2d 2d |.: :NONA|ME ( --|
|00003370| 20 78 74 20 33 30 30 20 | 29 0d 09 43 44 50 20 2d | xt 300 |)..CDP -|
|00003380| 3e 20 63 6f 6e 73 74 5f | 64 61 74 61 5f 73 74 61 |> const_|data_sta|
|00003390| 72 74 0d 09 24 20 42 45 | 30 30 30 30 30 30 20 63 |rt..$ BE|000000 c|
|000033a0| 6f 64 65 2c 09 09 5c 20 | 6e 6f 20 68 64 72 2c 20 |ode,..\ |no hdr, |
|000033b0| 6a 75 73 74 20 68 61 6e | 64 6c 65 72 20 63 6f 64 |just han|dler cod|
|000033c0| 65 20 66 6f 72 20 50 50 | 43 20 63 6f 6c 6f 6e 20 |e for PP|C colon |
|000033d0| 64 65 66 6e 73 2c 0d 09 | 09 09 09 09 09 09 5c 20 |defns,..|......\ |
|000033e0| 20 61 6e 64 20 69 6e 69 | 74 69 61 6c 20 66 6c 61 | and ini|tial fla|
|000033f0| 67 20 62 79 74 65 73 0d | 09 43 44 50 20 32 2d 09 |g bytes.|.CDP 2-.|
|00003400| 09 09 09 09 5c 20 78 74 | 20 3d 20 61 64 64 72 20 |....\ xt| = addr |
|00003410| 6f 66 20 66 6c 61 67 20 | 62 79 74 65 73 0d 09 66 |of flag |bytes..f|
|00003420| 61 6c 73 65 20 2d 3e 20 | 6d 65 74 68 6f 64 3f 0d |alse -> |method?.|
|00003430| 09 74 72 75 65 20 2d 3e | 20 6e 6f 6e 61 6d 65 3f |.true ->| noname?|
|00003440| 0d 09 66 61 6c 73 65 20 | 70 70 63 5f 65 6e 74 72 |..false |ppc_entr|
|00003450| 79 09 09 09 5c 20 68 61 | 6e 64 6c 65 20 70 70 63 |y...\ ha|ndle ppc|
|00003460| 20 70 72 6f 63 20 65 6e | 74 72 79 0d 3b 0d 0d 0d | proc en|try.;...|
|00003470| 5b 45 4c 53 45 5d 0d 0d | 3a 20 3a 0d 09 50 50 43 |[ELSE]..|: :..PPC|
|00003480| 3f 0d 09 49 46 09 43 44 | 50 20 2d 3e 20 63 6f 6e |?..IF.CD|P -> con|
|00003490| 73 74 5f 64 61 74 61 5f | 73 74 61 72 74 0d 09 09 |st_data_|start...|
|000034a0| 31 73 74 5f 64 65 66 6e | 20 4e 49 46 20 20 43 44 |1st_defn| NIF CD|
|000034b0| 50 20 2d 3e 20 31 73 74 | 5f 64 65 66 6e 20 20 54 |P -> 1st|_defn T|
|000034c0| 48 45 4e 0d 09 09 70 70 | 63 5f 68 65 61 64 65 72 |HEN...pp|c_header|
|000034d0| 0d 09 09 24 20 42 45 30 | 30 30 30 30 30 20 63 6f |...$ BE0|00000 co|
|000034e0| 64 65 2c 09 09 5c 20 68 | 61 6e 64 6c 65 72 20 63 |de,..\ h|andler c|
|000034f0| 6f 64 65 20 66 6f 72 20 | 50 50 43 20 63 6f 6c 6f |ode for |PPC colo|
|00003500| 6e 20 64 65 66 6e 73 2c | 0d 09 09 09 09 09 09 09 |n defns,|........|
|00003510| 09 5c 20 20 61 6e 64 20 | 69 6e 69 74 69 61 6c 20 |.\ and |initial |
|00003520| 66 6c 61 67 20 62 79 74 | 65 73 0d 09 09 66 61 6c |flag byt|es...fal|
|00003530| 73 65 20 2d 3e 20 6d 65 | 74 68 6f 64 3f 0d 09 09 |se -> me|thod?...|
|00003540| 66 61 6c 73 65 20 2d 3e | 20 6e 6f 6e 61 6d 65 3f |false ->| noname?|
|00003550| 0d 09 09 30 20 3e 73 69 | 7a 65 3a 20 63 6f 6e 74 |...0 >si|ze: cont|
|00003560| 72 6f 6c 5f 73 74 6b 20 | 20 30 20 3e 73 69 7a 65 |rol_stk | 0 >size|
|00003570| 3a 20 63 6f 6e 74 72 6f | 6c 5f 66 6c 61 67 73 0d |: contro|l_flags.|
|00003580| 09 09 66 61 6c 73 65 20 | 70 70 63 5f 65 6e 74 72 |..false |ppc_entr|
|00003590| 79 09 09 09 5c 20 68 61 | 6e 64 6c 65 20 70 70 63 |y...\ ha|ndle ppc|
|000035a0| 20 70 72 6f 63 20 65 6e | 74 72 79 0d 09 09 70 6f | proc en|try...po|
|000035b0| 73 74 70 6f 6e 65 20 68 | 69 64 65 09 09 09 5c 20 |stpone h|ide...\ |
|000035c0| 6e 65 77 20 77 6f 72 64 | 20 69 73 20 68 69 64 64 |new word| is hidd|
|000035d0| 65 6e 20 75 6e 74 69 6c | 20 64 65 66 6e 20 65 6e |en until| defn en|
|000035e0| 64 0d 09 45 4c 53 45 0d | 09 09 70 6f 73 74 70 6f |d..ELSE.|..postpo|
|000035f0| 6e 65 20 3a 0d 09 54 48 | 45 4e 0d 3b 09 09 69 6d |ne :..TH|EN.;..im|
|00003600| 6d 65 64 69 61 74 65 0d | 0d 5b 54 48 45 4e 5d 0d |mediate.|.[THEN].|
|00003610| 0d 0d 3a 20 43 6f 6d 70 | 45 78 69 74 0d 5c 09 73 |..: Comp|Exit.\.s|
|00003620| 74 6f 72 65 5f 61 6c 6c | 5f 70 65 6e 64 69 6e 67 |tore_all|_pending|
|00003630| 0d 5c 09 74 61 69 6c 5f | 6f 70 74 69 6d 69 7a 65 |.\.tail_|optimize|
|00003640| 3f 20 20 3f 45 58 49 54 | 0d 09 42 4c 52 20 63 6f |? ?EXIT|..BLR co|
|00003650| 64 65 2c 0d 3b 0d 0d 3a | 20 43 4c 52 43 4f 4d 50 |de,.;..:| CLRCOMP|
|00003660| 0d 09 30 20 2d 3e 20 23 | 50 4c 20 20 30 20 2d 3e |..0 -> #|PL 0 ->|
|00003670| 20 23 46 50 4c 0d 09 66 | 61 6c 73 65 20 2d 3e 20 | #FPL..f|alse -> |
|00003680| 6d 65 74 68 6f 64 3f 20 | 20 66 61 6c 73 65 20 2d |method? | false -|
|00003690| 3e 20 6e 6f 6e 61 6d 65 | 3f 0d 09 66 61 6c 73 65 |> noname|?..false|
|000036a0| 20 2d 3e 20 6d 6c 6f 63 | 3f 0d 09 30 20 2d 3e 20 | -> mloc|?..0 -> |
|000036b0| 74 65 6d 70 4f 62 6a 5f | 66 72 61 6d 65 53 69 7a |tempObj_|frameSiz|
|000036c0| 65 0d 09 66 61 6c 73 65 | 20 2d 3e 20 66 6c 74 46 |e..false| -> fltF|
|000036d0| 6c 67 0d 3b 0d 0d 0d 50 | 50 43 3f 20 5b 49 46 5d |lg.;...P|PC? [IF]|
|000036e0| 0d 66 6f 72 77 61 72 64 | 20 72 65 6c 65 61 73 65 |.forward| release|
|000036f0| 54 65 6d 70 73 09 09 09 | 5c 20 69 6e 20 7a 43 6c |Temps...|\ in zCl|
|00003700| 61 73 73 0d 5b 54 48 45 | 4e 5d 0d 0d 3a 20 28 3b |ass.[THE|N]..: (;|
|00003710| 29 20 20 7b 20 5e 66 6c | 61 67 73 20 5c 20 6c 6f |) { ^fl|ags \ lo|
|00003720| 63 5f 61 64 64 72 20 23 | 67 70 72 73 5f 74 6f 5f |c_addr #|gprs_to_|
|00003730| 73 61 76 65 20 23 66 70 | 72 73 5f 74 6f 5f 73 61 |save #fp|rs_to_sa|
|00003740| 76 65 20 2d 2d 20 7d 0d | 09 09 09 5c 20 66 61 63 |ve -- }.|...\ fac|
|00003750| 74 6f 72 73 20 6f 75 74 | 20 63 6f 6d 6d 6f 6e 20 |tors out| common |
|00003760| 63 6f 64 65 20 66 6f 72 | 20 3b 20 61 6e 64 20 3b |code for| ; and ;|
|00003770| 6d 0d 0d 09 64 65 62 75 | 67 3f 20 69 66 0d 09 09 |m...debu|g? if...|
|00003780| 2e 22 20 28 3b 29 20 68 | 65 72 65 22 20 63 72 0d |." (;) h|ere" cr.|
|00003790| 09 74 68 65 6e 0d 09 0d | 09 66 61 6c 73 65 20 2d |.then...|.false -|
|000037a0| 3e 20 66 70 5f 66 6c 61 | 67 73 3f 0d 0d 28 2a 09 |> fp_fla|gs?..(*.|
|000037b0| 46 69 72 73 74 2c 20 77 | 65 20 63 61 6c 6c 20 73 |First, w|e call s|
|000037c0| 65 74 5f 63 6f 6e 73 74 | 44 61 74 61 5f 72 65 67 |et_const|Data_reg|
|000037d0| 20 77 68 69 63 68 20 64 | 65 63 69 64 65 73 20 69 | which d|ecides i|
|000037e0| 66 20 77 65 27 72 65 20 | 67 6f 69 6e 67 20 74 6f |f we're |going to|
|000037f0| 0d 09 75 73 65 20 6f 6e | 65 20 6f 66 20 6f 75 72 |..use on|e of our|
|00003800| 20 6c 6f 63 61 6c 73 20 | 72 65 67 73 20 61 73 20 | locals |regs as |
|00003810| 61 20 62 61 73 65 20 72 | 65 67 20 66 6f 72 20 61 |a base r|eg for a|
|00003820| 64 64 72 65 73 73 69 6e | 67 20 74 68 65 20 63 6f |ddressin|g the co|
|00003830| 6e 73 74 0d 09 64 61 74 | 61 20 61 72 65 61 2e 20 |nst..dat|a area. |
|00003840| 20 54 68 65 6e 20 69 66 | 20 77 65 20 64 6f 20 74 | Then if| we do t|
|00003850| 68 69 73 2c 20 77 65 20 | 6d 61 6b 65 20 74 68 69 |his, we |make thi|
|00003860| 73 20 64 65 66 6e 20 6e | 6f 6e 2d 6c 65 61 66 2e |s defn n|on-leaf.|
|00003870| 20 20 57 65 20 61 6c 73 | 6f 0d 09 64 6f 20 74 68 | We als|o..do th|
|00003880| 69 73 20 69 66 20 74 68 | 65 72 65 20 61 72 65 20 |is if th|ere are |
|00003890| 74 65 6d 70 20 6f 62 6a | 65 63 74 73 2e 20 20 57 |temp obj|ects. W|
|000038a0| 65 20 64 6f 6e 27 74 20 | 77 61 6e 74 20 74 68 65 |e don't |want the|
|000038b0| 20 65 78 74 72 61 20 63 | 6f 6d 70 6c 65 78 69 74 | extra c|omplexit|
|000038c0| 79 0d 09 6f 66 20 63 6f | 6e 73 74 20 64 61 74 61 |y..of co|nst data|
|000038d0| 20 72 65 67 20 6f 72 20 | 74 65 6d 70 20 6f 62 6a | reg or |temp obj|
|000038e0| 65 63 74 20 6d 61 6e 61 | 67 65 6d 65 6e 74 20 69 |ect mana|gement i|
|000038f0| 6e 20 74 68 65 20 74 77 | 6f 20 74 79 70 65 73 20 |n the tw|o types |
|00003900| 6f 66 0d 09 63 61 6c 6c | 69 6e 67 20 73 65 71 75 |of..call|ing sequ|
|00003910| 65 6e 63 65 20 2d 20 6f | 6e 65 20 69 73 20 71 75 |ence - o|ne is qu|
|00003920| 69 74 65 20 65 6e 6f 75 | 67 68 21 0d 2a 29 0d 09 |ite enou|gh!.*)..|
|00003930| 0d 5c 09 73 65 74 5f 63 | 6f 6e 73 74 44 61 74 61 |.\.set_c|onstData|
|00003940| 5f 72 65 67 09 09 5c 20 | 73 65 74 73 20 43 44 5f |_reg..\ |sets CD_|
|00003950| 67 70 72 23 20 6e 6f 6e | 2d 7a 65 72 6f 20 69 66 |gpr# non|-zero if|
|00003960| 20 77 65 27 72 65 20 75 | 73 69 6e 67 20 69 74 0d | we're u|sing it.|
|00003970| 5c 09 43 44 5f 67 70 72 | 23 20 49 46 20 20 66 61 |\.CD_gpr|# IF fa|
|00003980| 6c 73 65 20 2d 3e 20 6c | 65 61 66 3f 20 20 54 48 |lse -> l|eaf? TH|
|00003990| 45 4e 0d 0d 09 74 65 6d | 70 4f 62 6a 5f 66 72 61 |EN...tem|pObj_fra|
|000039a0| 6d 65 73 69 7a 65 0d 09 | 49 46 09 66 61 6c 73 65 |mesize..|IF.false|
|000039b0| 20 2d 3e 20 6c 65 61 66 | 3f 0d 09 09 5b 20 70 70 | -> leaf|?...[ pp|
|000039c0| 63 3f 20 5d 20 5b 69 66 | 5d 0d 09 09 09 72 65 6c |c? ] [if|]....rel|
|000039d0| 65 61 73 65 54 65 6d 70 | 73 0d 09 09 5b 74 68 65 |easeTemp|s...[the|
|000039e0| 6e 5d 0d 09 54 48 45 4e | 0d 09 0d 5c 20 6e 6f 77 |n]..THEN|...\ now|
|000039f0| 20 77 65 20 65 71 75 61 | 6c 69 7a 65 20 74 68 65 | we equa|lize the|
|00003a00| 20 73 74 61 63 6b 73 20 | 61 63 63 6f 72 64 69 6e | stacks |accordin|
|00003a10| 67 20 74 6f 20 77 68 61 | 74 20 77 65 20 77 61 6e |g to wha|t we wan|
|00003a20| 74 20 66 6f 72 20 61 0d | 5c 20 20 72 65 74 75 72 |t for a.|\ retur|
|00003a30| 6e 20 66 72 6f 6d 20 74 | 68 69 73 20 64 65 66 69 |n from t|his defi|
|00003a40| 6e 69 74 69 6f 6e 3a 0d | 0d 09 67 65 74 5f 72 74 |nition:.|..get_rt|
|00003a50| 6e 5f 63 6e 74 73 20 20 | 73 69 6d 70 6c 65 5f 65 |n_cnts |simple_e|
|00003a60| 71 75 61 6c 69 7a 65 0d | 0d 5c 20 6e 6f 77 20 77 |qualize.|.\ now w|
|00003a70| 65 20 73 65 74 20 75 70 | 20 74 68 65 20 66 69 72 |e set up| the fir|
|00003a80| 73 74 20 66 6c 61 67 20 | 62 79 74 65 20 66 6f 72 |st flag |byte for|
|00003a90| 20 74 68 69 73 20 64 65 | 66 6e 2c 20 75 6e 6c 65 | this de|fn, unle|
|00003aa0| 73 73 20 69 74 20 77 61 | 73 20 66 6f 72 77 61 72 |ss it wa|s forwar|
|00003ab0| 64 2e 0d 5c 20 54 68 65 | 20 73 65 63 6f 6e 64 20 |d..\ The| second |
|00003ac0| 66 6c 61 67 20 62 79 74 | 65 20 77 61 73 20 73 65 |flag byt|e was se|
|00003ad0| 74 20 75 70 20 61 74 20 | 50 4c 65 6e 74 72 79 2e |t up at |PLentry.|
|00003ae0| 20 20 57 65 20 61 6c 73 | 6f 20 73 65 74 20 75 70 | We als|o set up|
|00003af0| 20 74 68 65 20 46 50 20 | 66 6c 61 67 0d 5c 20 20 | the FP |flag.\ |
|00003b00| 62 79 74 65 73 20 69 66 | 20 6e 65 63 65 73 73 61 |bytes if| necessa|
|00003b10| 72 79 2e 0d 0d 09 66 6f | 72 77 61 72 64 3f 0d 09 |ry....fo|rward?..|
|00003b20| 4e 49 46 0d 09 09 66 70 | 72 5f 63 61 6c 6c 5f 63 |NIF...fp|r_call_c|
|00003b30| 6e 74 20 66 70 72 5f 72 | 74 6e 5f 63 6e 74 20 3c |nt fpr_r|tn_cnt <|
|00003b40| 3e 20 20 23 46 50 4c 20 | 30 3c 3e 20 6f 72 20 20 |> #FPL |0<> or |
|00003b50| 2d 3e 20 66 70 5f 66 6c | 61 67 73 3f 0d 09 09 6c |-> fp_fl|ags?...l|
|00003b60| 65 61 66 3f 20 20 24 20 | 38 30 20 61 6e 64 0d 09 |eaf? $ |80 and..|
|00003b70| 09 63 74 72 5f 63 6c 6f | 62 62 65 72 65 64 3f 09 |.ctr_clo|bbered?.|
|00003b80| 24 20 34 30 20 61 6e 64 | 20 6f 72 0d 09 09 66 70 |$ 40 and| or...fp|
|00003b90| 5f 66 6c 61 67 73 3f 09 | 09 24 20 31 30 20 61 6e |_flags?.|.$ 10 an|
|00003ba0| 64 20 6f 72 0d 09 09 67 | 70 72 5f 72 74 6e 5f 63 |d or...g|pr_rtn_c|
|00003bb0| 6e 74 20 6f 72 0d 09 09 | 5e 66 6c 61 67 73 20 63 |nt or...|^flags c|
|00003bc0| 21 0d 09 09 0d 09 09 66 | 70 5f 66 6c 61 67 73 3f |!......f|p_flags?|
|00003bd0| 0d 09 09 49 46 20 20 66 | 70 72 5f 72 74 6e 5f 63 |...IF f|pr_rtn_c|
|00003be0| 6e 74 20 20 38 20 3c 3c | 20 20 6f 72 3e 20 66 70 |nt 8 <<| or> fp|
|00003bf0| 5f 66 6c 61 67 73 20 20 | 54 48 45 4e 0d 09 54 48 |_flags |THEN..TH|
|00003c00| 45 4e 0d 0d 09 23 50 4c | 20 20 6d 61 78 5f 63 61 |EN...#PL| max_ca|
|00003c10| 6c 6c 65 64 5f 23 50 4c | 20 20 6d 61 78 20 20 2d |lled_#PL| max -|
|00003c20| 3e 20 23 47 50 52 73 5f | 74 6f 5f 73 61 76 65 0d |> #GPRs_|to_save.|
|00003c30| 09 23 46 50 4c 20 6d 61 | 78 5f 63 61 6c 6c 65 64 |.#FPL ma|x_called|
|00003c40| 5f 23 46 50 4c 20 6d 61 | 78 20 20 2d 3e 20 23 46 |_#FPL ma|x -> #F|
|00003c50| 50 52 73 5f 74 6f 5f 73 | 61 76 65 0d 09 23 47 50 |PRs_to_s|ave..#GP|
|00003c60| 52 73 5f 74 6f 5f 73 61 | 76 65 20 23 46 50 52 73 |Rs_to_sa|ve #FPRs|
|00003c70| 5f 74 6f 5f 73 61 76 65 | 20 20 63 6f 6d 70 69 6c |_to_save| compil|
|00003c80| 65 5f 70 72 6f 6c 6f 67 | 26 65 70 69 6c 6f 67 0d |e_prolog|&epilog.|
|00003c90| 0d 09 66 70 5f 61 64 6a | 75 73 74 09 09 09 09 5c |..fp_adj|ust....\|
|00003ca0| 20 63 61 6e 20 6d 6f 76 | 65 20 74 68 65 20 64 65 | can mov|e the de|
|00003cb0| 66 6e 0d 09 61 64 64 5f | 63 6f 6e 73 74 5f 64 61 |fn..add_|const_da|
|00003cc0| 74 61 09 09 09 5c 20 64 | 69 74 74 6f 0d 09 63 6f |ta...\ d|itto..co|
|00003cd0| 6d 70 45 78 69 74 0d 09 | 66 69 6e 61 6c 69 7a 65 |mpExit..|finalize|
|00003ce0| 5f 64 65 66 6e 0d 0d 28 | 2a 09 4e 6f 77 20 69 66 |_defn..(|*.Now if|
|00003cf0| 20 69 6e 69 74 5f 65 6e | 74 72 79 20 68 61 73 20 | init_en|try has |
|00003d00| 62 65 65 6e 20 73 65 74 | 20 6e 6f 6e 7a 65 72 6f |been set| nonzero|
|00003d10| 2c 20 69 74 20 6d 65 61 | 6e 73 20 74 68 69 73 20 |, it mea|ns this |
|00003d20| 64 65 66 6e 20 68 61 73 | 20 61 73 6b 65 64 20 74 |defn has| asked t|
|00003d30| 6f 20 62 65 0d 09 73 65 | 74 20 61 73 20 74 68 65 |o be..se|t as the|
|00003d40| 20 69 6e 69 74 69 61 6c | 20 65 6e 74 72 79 2c 20 | initial| entry, |
|00003d50| 62 79 20 70 75 74 74 69 | 6e 67 20 74 68 65 20 74 |by putti|ng the t|
|00003d60| 61 72 67 65 74 20 61 64 | 64 72 20 69 6e 20 69 6e |arget ad|dr in in|
|00003d70| 69 74 5f 65 6e 74 72 79 | 2e 0d 09 57 65 20 68 61 |it_entry|...We ha|
|00003d80| 6e 64 6c 65 20 74 68 65 | 20 69 6e 69 74 69 61 6c |ndle the| initial|
|00003d90| 20 65 6e 74 72 79 20 69 | 6e 20 61 20 73 69 6d 70 | entry i|n a simp|
|00003da0| 6c 65 20 77 61 79 20 2d | 20 72 61 74 68 65 72 20 |le way -| rather |
|00003db0| 74 68 61 6e 20 74 72 79 | 69 6e 67 20 74 6f 20 64 |than try|ing to d|
|00003dc0| 6f 0d 09 61 6e 79 74 68 | 69 6e 67 20 63 6c 65 76 |o..anyth|ing clev|
|00003dd0| 65 72 20 77 69 74 68 20 | 74 68 65 20 50 45 46 2c |er with |the PEF,|
|00003de0| 20 77 65 20 6a 75 73 74 | 20 70 75 74 20 61 20 62 | we just| put a b|
|00003df0| 72 61 6e 63 68 20 61 74 | 20 74 68 65 20 73 74 61 |ranch at| the sta|
|00003e00| 72 74 20 6f 66 20 74 68 | 65 0d 09 63 6f 64 65 2e |rt of th|e..code.|
|00003e10| 20 20 48 65 72 65 20 69 | 66 20 6e 65 63 65 73 73 | Here i|f necess|
|00003e20| 61 72 79 2c 20 77 65 20 | 72 65 73 6f 6c 76 65 20 |ary, we |resolve |
|00003e30| 74 68 61 74 20 62 72 61 | 6e 63 68 20 74 6f 20 69 |that bra|nch to i|
|00003e40| 6e 69 74 5f 65 6e 74 72 | 79 2e 20 20 4e 6f 74 65 |nit_entr|y. Note|
|00003e50| 20 77 65 0d 09 64 6f 6e | 27 74 20 75 73 65 20 72 | we..don|'t use r|
|00003e60| 65 73 6f 6c 76 65 5f 62 | 72 61 6e 63 68 2c 20 73 |esolve_b|ranch, s|
|00003e70| 69 6e 63 65 20 74 68 61 | 74 27 73 20 66 6f 72 20 |ince tha|t's for |
|00003e80| 75 73 65 20 77 69 74 68 | 69 6e 20 61 20 64 65 66 |use with|in a def|
|00003e90| 6e 2c 20 61 6e 64 20 61 | 73 73 75 6d 65 73 20 61 |n, and a|ssumes a|
|00003ea0| 0d 09 31 36 2d 62 69 74 | 20 6f 66 66 73 65 74 2c |..16-bit| offset,|
|00003eb0| 20 77 68 69 63 68 20 73 | 75 72 65 6c 79 20 77 6f | which s|urely wo|
|00003ec0| 6e 27 74 20 62 65 20 65 | 6e 6f 75 79 68 20 68 65 |n't be e|nouyh he|
|00003ed0| 72 65 2e 0d 2a 29 0d 09 | 69 6e 69 74 5f 65 6e 74 |re..*)..|init_ent|
|00003ee0| 72 79 0d 09 49 46 09 69 | 6e 69 74 5f 65 6e 74 72 |ry..IF.i|nit_entr|
|00003ef0| 79 20 63 6f 64 65 5f 73 | 74 61 72 74 20 2d 20 24 |y code_s|tart - $|
|00003f00| 20 30 33 46 46 46 46 46 | 46 20 61 6e 64 09 5c 20 | 03FFFFF|F and.\ |
|00003f10| 6f 66 66 73 65 74 20 2d | 20 73 68 6f 75 6c 64 20 |offset -| should |
|00003f20| 62 65 20 70 6f 73 69 74 | 69 76 65 0d 09 09 63 6f |be posit|ive...co|
|00003f30| 64 65 5f 73 74 61 72 74 | 20 40 20 24 20 46 43 30 |de_start| @ $ FC0|
|00003f40| 30 30 30 30 30 20 61 6e | 64 20 6f 72 0d 09 09 63 |00000 an|d or...c|
|00003f50| 6f 64 65 5f 73 74 61 72 | 74 20 21 0d 09 09 30 20 |ode_star|t !...0 |
|00003f60| 2d 3e 20 69 6e 69 74 5f | 65 6e 74 72 79 0d 09 54 |-> init_|entry..T|
|00003f70| 48 45 4e 0d 09 6e 6f 6e | 61 6d 65 3f 20 66 6f 72 |HEN..non|ame? for|
|00003f80| 77 61 72 64 3f 20 6f 72 | 20 20 4e 49 46 20 20 70 |ward? or| NIF p|
|00003f90| 6f 73 74 70 6f 6e 65 20 | 72 65 76 65 61 6c 20 20 |ostpone |reveal |
|00003fa0| 54 48 45 4e 0d 09 6c 6f | 63 61 6c 3f 20 4e 49 46 |THEN..lo|cal? NIF|
|00003fb0| 20 20 63 6c 72 43 6f 6d | 70 20 20 30 20 2d 3e 20 | clrCom|p 0 -> |
|00003fc0| 23 50 20 20 30 20 2d 3e | 20 23 46 50 0d 09 09 09 |#P 0 ->| #FP....|
|00003fd0| 09 5b 20 70 70 63 3f 20 | 5d 20 5b 69 66 5d 20 20 |.[ ppc? |] [if] |
|00003fe0| 30 20 2d 3e 20 43 44 5f | 67 70 72 23 20 20 5b 74 |0 -> CD_|gpr# [t|
|00003ff0| 68 65 6e 5d 0d 09 09 20 | 20 20 54 48 45 4e 0d 09 |hen]... | THEN..|
|00004000| 30 20 2d 3e 20 73 74 61 | 74 65 0d 09 66 61 6c 73 |0 -> sta|te..fals|
|00004010| 65 20 2d 3e 20 6e 6f 6e | 61 6d 65 3f 20 20 66 61 |e -> non|ame? fa|
|00004020| 6c 73 65 20 2d 3e 20 6d | 6c 6f 63 3f 0d 5b 20 70 |lse -> m|loc?.[ p|
|00004030| 70 63 3f 20 5d 20 5b 69 | 66 5d 0d 09 63 75 72 72 |pc? ] [i|f]..curr|
|00004040| 2d 64 65 66 2d 63 6f 64 | 65 20 33 32 20 2d 20 20 |-def-cod|e 32 - |
|00004050| 43 44 50 20 6f 76 65 72 | 20 2d 20 33 32 20 2b 20 |CDP over| - 32 + |
|00004060| 20 66 69 78 5f 63 61 63 | 68 65 73 0d 5b 74 68 65 | fix_cac|hes.[the|
|00004070| 6e 5d 0d 3b 0d 0d 0d 50 | 50 43 3f 0d 5b 49 46 5d |n].;...P|PC?.[IF]|
|00004080| 0d 0d 3a 20 3b 09 09 09 | 09 70 70 63 5f 69 6d 6d |..: ;...|.ppc_imm|
|00004090| 65 64 69 61 74 65 0d 09 | 63 75 72 72 2d 64 65 66 |ediate..|curr-def|
|000040a0| 20 32 2d 20 28 3b 29 0d | 09 33 30 30 20 3f 64 65 | 2- (;).|.300 ?de|
|000040b0| 66 6e 0d 3b 0d 0d 0d 3a | 20 3b 70 72 6f 63 0d 09 |fn.;...:| ;proc..|
|000040c0| 63 75 72 72 2d 64 65 66 | 20 32 2d 20 28 3b 29 0d |curr-def| 2- (;).|
|000040d0| 09 33 30 36 20 3f 64 65 | 66 6e 0d 3b 09 09 70 70 |.306 ?de|fn.;..pp|
|000040e0| 63 5f 69 6d 6d 65 64 69 | 61 74 65 0d 0d 0d 3a 20 |c_immedi|ate...: |
|000040f0| 45 58 49 54 0d 09 09 67 | 65 74 5f 72 74 6e 5f 63 |EXIT...g|et_rtn_c|
|00004100| 6e 74 73 20 73 69 6d 70 | 6c 65 5f 65 71 75 61 6c |nts simp|le_equal|
|00004110| 69 7a 65 0d 09 09 24 20 | 42 46 30 32 30 30 30 30 |ize...$ |BF020000|
|00004120| 20 20 63 6f 64 65 2c 09 | 09 09 5c 20 6f 70 63 6f | code,.|..\ opco|
|00004130| 64 65 20 42 46 30 32 20 | 3d 20 45 58 49 54 2e 20 |de BF02 |= EXIT. |
|00004140| 20 57 69 6c 6c 20 62 65 | 20 63 68 61 6e 67 65 64 | Will be| changed|
|00004150| 0d 09 09 09 09 09 09 09 | 09 09 5c 20 20 74 6f 20 |........|..\ to |
|00004160| 61 6e 20 75 6e 63 6f 6e | 64 20 62 72 61 6e 63 68 |an uncon|d branch|
|00004170| 20 74 6f 20 74 68 65 20 | 65 70 69 6c 6f 67 2e 0d | to the |epilog..|
|00004180| 09 09 73 69 7a 65 3a 20 | 63 6f 6e 74 72 6f 6c 5f |..size: |control_|
|00004190| 66 6c 61 67 73 0d 09 09 | 49 46 20 20 70 6f 70 3a |flags...|IF pop:|
|000041a0| 20 63 6f 6e 74 72 6f 6c | 5f 66 6c 61 67 73 20 34 | control|_flags 4|
|000041b0| 20 6f 72 20 20 70 75 73 | 68 3a 20 63 6f 6e 74 72 | or pus|h: contr|
|000041c0| 6f 6c 5f 66 6c 61 67 73 | 20 20 54 48 45 4e 0d 09 |ol_flags| THEN..|
|000041d0| 09 09 09 09 09 09 09 09 | 5c 20 74 68 69 73 20 62 |........|\ this b|
|000041e0| 61 73 69 63 20 62 6c 6f | 63 6b 20 69 73 20 6e 6f |asic blo|ck is no|
|000041f0| 77 20 64 65 61 64 21 0d | 09 09 43 44 50 20 2d 3e |w dead!.|..CDP ->|
|00004200| 20 62 61 73 69 63 5f 62 | 6c 6f 63 6b 5f 73 74 61 | basic_b|lock_sta|
|00004210| 72 74 09 5c 20 74 6f 20 | 62 6c 6f 63 6b 20 68 6f |rt.\ to |block ho|
|00004220| 69 73 74 73 20 2d 20 62 | 75 74 20 6e 6f 74 20 6d |ists - b|ut not m|
|00004230| 75 63 68 0d 09 09 09 09 | 09 09 09 09 09 5c 20 20 |uch.....|.....\ |
|00004240| 70 6f 69 6e 74 21 0d 3b | 09 09 70 70 63 5f 69 6d |point!.;|..ppc_im|
|00004250| 6d 65 64 69 61 74 65 0d | 0d 0d 3a 20 3f 45 58 49 |mediate.|..: ?EXI|
|00004260| 54 0d 09 22 20 49 46 20 | 45 58 49 54 20 54 48 45 |T.." IF |EXIT THE|
|00004270| 4e 22 20 20 65 76 61 6c | 75 61 74 65 0d 3b 09 09 |N" eval|uate.;..|
|00004280| 09 09 09 09 09 70 70 63 | 5f 69 6d 6d 65 64 69 61 |.....ppc|_immedia|
|00004290| 74 65 0d 0d 3a 20 30 45 | 58 49 54 0d 09 22 20 4e |te..: 0E|XIT.." N|
|000042a0| 49 46 20 45 58 49 54 20 | 54 48 45 4e 22 20 20 65 |IF EXIT |THEN" e|
|000042b0| 76 61 6c 75 61 74 65 0d | 3b 09 09 09 09 09 09 09 |valuate.|;.......|
|000042c0| 70 70 63 5f 69 6d 6d 65 | 64 69 61 74 65 0d 0d 0d |ppc_imme|diate...|
|000042d0| 5b 45 4c 53 45 5d 0d 0d | 3a 20 3b 0d 09 50 50 43 |[ELSE]..|: ;..PPC|
|000042e0| 3f 0d 09 49 46 0d 09 09 | 63 75 72 72 2d 64 65 66 |?..IF...|curr-def|
|000042f0| 20 32 2d 20 28 3b 29 0d | 5c 09 09 33 30 30 20 3f | 2- (;).|\..300 ?|
|00004300| 64 65 66 6e 0d 09 09 33 | 30 30 20 3c 3e 20 49 46 |defn...3|00 <> IF|
|00004310| 20 63 72 20 2e 22 20 77 | 61 72 6e 69 6e 67 20 2d | cr ." w|arning -|
|00004320| 20 75 6e 62 61 6c 61 6e | 63 65 64 21 21 22 20 63 | unbalan|ced!!" c|
|00004330| 72 20 54 48 45 4e 0d 09 | 45 4c 53 45 0d 09 09 70 |r THEN..|ELSE...p|
|00004340| 6f 73 74 70 6f 6e 65 20 | 3b 0d 09 54 48 45 4e 0d |ostpone |;..THEN.|
|00004350| 3b 09 09 09 09 69 6d 6d | 65 64 69 61 74 65 0d 0d |;....imm|ediate..|
|00004360| 3a 20 45 58 49 54 0d 09 | 50 50 43 3f 0d 09 49 46 |: EXIT..|PPC?..IF|
|00004370| 09 67 65 74 5f 72 74 6e | 5f 63 6e 74 73 20 73 69 |.get_rtn|_cnts si|
|00004380| 6d 70 6c 65 5f 65 71 75 | 61 6c 69 7a 65 0d 09 09 |mple_equ|alize...|
|00004390| 24 20 42 46 30 32 30 30 | 30 30 20 20 63 6f 64 65 |$ BF0200|00 code|
|000043a0| 2c 09 09 09 5c 20 6f 70 | 63 6f 64 65 20 42 46 30 |,...\ op|code BF0|
|000043b0| 32 20 3d 20 45 58 49 54 | 2e 20 20 57 69 6c 6c 20 |2 = EXIT|. Will |
|000043c0| 62 65 20 63 68 61 6e 67 | 65 64 0d 09 09 09 09 09 |be chang|ed......|
|000043d0| 09 09 09 09 5c 20 20 74 | 6f 20 61 6e 20 75 6e 63 |....\ t|o an unc|
|000043e0| 6f 6e 64 20 62 72 61 6e | 63 68 20 74 6f 20 74 68 |ond bran|ch to th|
|000043f0| 65 20 65 70 69 6c 6f 67 | 2e 0d 09 09 73 69 7a 65 |e epilog|....size|
|00004400| 3a 20 63 6f 6e 74 72 6f | 6c 5f 66 6c 61 67 73 0d |: contro|l_flags.|
|00004410| 09 09 49 46 20 20 70 6f | 70 3a 20 63 6f 6e 74 72 |..IF po|p: contr|
|00004420| 6f 6c 5f 66 6c 61 67 73 | 20 34 20 6f 72 20 20 70 |ol_flags| 4 or p|
|00004430| 75 73 68 3a 20 63 6f 6e | 74 72 6f 6c 5f 66 6c 61 |ush: con|trol_fla|
|00004440| 67 73 20 20 54 48 45 4e | 0d 09 09 09 09 09 09 09 |gs THEN|........|
|00004450| 09 09 5c 20 74 68 69 73 | 20 62 61 73 69 63 20 62 |..\ this| basic b|
|00004460| 6c 6f 63 6b 20 69 73 20 | 6e 6f 77 20 64 65 61 64 |lock is |now dead|
|00004470| 21 0d 09 09 43 44 50 20 | 2d 3e 20 62 61 73 69 63 |!...CDP |-> basic|
|00004480| 5f 62 6c 6f 63 6b 5f 73 | 74 61 72 74 09 5c 20 74 |_block_s|tart.\ t|
|00004490| 6f 20 62 6c 6f 63 6b 20 | 68 6f 69 73 74 73 20 2d |o block |hoists -|
|000044a0| 20 62 75 74 20 6e 6f 74 | 20 6d 75 63 68 0d 09 09 | but not| much...|
|000044b0| 09 09 09 09 09 09 09 5c | 20 20 70 6f 69 6e 74 21 |.......\| point!|
|000044c0| 0d 09 45 4c 53 45 0d 09 | 09 70 6f 73 74 70 6f 6e |..ELSE..|.postpon|
|000044d0| 65 20 65 78 69 74 0d 09 | 54 48 45 4e 0d 3b 09 09 |e exit..|THEN.;..|
|000044e0| 69 6d 6d 65 64 69 61 74 | 65 0d 0d 0d 3a 20 3f 45 |immediat|e...: ?E|
|000044f0| 58 49 54 0d 09 50 50 43 | 3f 0d 09 49 46 09 22 20 |XIT..PPC|?..IF." |
|00004500| 49 46 20 45 58 49 54 20 | 54 48 45 4e 22 20 20 65 |IF EXIT |THEN" e|
|00004510| 76 61 6c 75 61 74 65 0d | 09 45 4c 53 45 0d 09 09 |valuate.|.ELSE...|
|00004520| 70 6f 73 74 70 6f 6e 65 | 20 3f 65 78 69 74 0d 09 |postpone| ?exit..|
|00004530| 54 48 45 4e 20 20 3b 09 | 09 09 09 09 09 09 69 6d |THEN ;.|......im|
|00004540| 6d 65 64 69 61 74 65 0d | 0d 3a 20 30 45 58 49 54 |mediate.|.: 0EXIT|
|00004550| 0d 09 50 50 43 3f 0d 09 | 49 46 09 22 20 4e 49 46 |..PPC?..|IF." NIF|
|00004560| 20 45 58 49 54 20 54 48 | 45 4e 22 20 20 65 76 61 | EXIT TH|EN" eva|
|00004570| 6c 75 61 74 65 0d 09 45 | 4c 53 45 0d 09 09 70 6f |luate..E|LSE...po|
|00004580| 73 74 70 6f 6e 65 20 30 | 65 78 69 74 0d 09 54 48 |stpone 0|exit..TH|
|00004590| 45 4e 20 20 3b 09 09 09 | 09 09 09 09 69 6d 6d 65 |EN ;...|....imme|
|000045a0| 64 69 61 74 65 0d 0d 5b | 54 48 45 4e 5d 0d 0d 0d |diate..[|THEN]...|
|000045b0| 30 09 76 61 6c 75 65 09 | 73 76 5f 63 75 72 72 2d |0.value.|sv_curr-|
|000045c0| 64 65 66 0d 30 09 76 61 | 6c 75 65 09 73 76 5f 23 |def.0.va|lue.sv_#|
|000045d0| 50 4c 0d 30 09 76 61 6c | 75 65 09 73 76 5f 23 50 |PL.0.val|ue.sv_#P|
|000045e0| 0d 30 09 76 61 6c 75 65 | 09 73 76 5f 63 6f 6e 73 |.0.value|.sv_cons|
|000045f0| 74 5f 64 61 74 61 5f 73 | 74 61 72 74 0d 30 09 76 |t_data_s|tart.0.v|
|00004600| 61 6c 75 65 09 73 76 5f | 66 70 5f 66 6c 61 67 73 |alue.sv_|fp_flags|
|00004610| 0d 30 09 76 61 6c 75 65 | 09 73 76 5f 43 44 5f 67 |.0.value|.sv_CD_g|
|00004620| 70 72 23 0d 0d 0d 28 2a | 09 28 73 75 73 70 65 6e |pr#...(*|.(suspen|
|00004630| 64 5f 63 6f 6d 70 69 6c | 61 74 69 6f 6e 29 20 61 |d_compil|ation) a|
|00004640| 6e 64 20 28 72 65 73 75 | 6d 65 5f 63 6f 6d 70 69 |nd (resu|me_compi|
|00004650| 6c 61 74 69 6f 6e 29 20 | 61 72 65 20 63 61 6c 6c |lation) |are call|
|00004660| 65 64 20 62 79 20 5b 20 | 61 6e 64 20 5d 20 72 65 |ed by [ |and ] re|
|00004670| 73 70 65 63 74 69 76 65 | 6c 79 2e 0d 09 54 68 65 |spective|ly...The|
|00004680| 20 70 72 6f 62 6c 65 6d | 20 77 65 20 68 61 76 65 | problem| we have|
|00004690| 20 74 6f 20 73 6f 6c 76 | 65 20 69 73 20 74 68 61 | to solv|e is tha|
|000046a0| 74 20 77 68 65 6e 20 72 | 65 73 75 6d 69 6e 67 20 |t when r|esuming |
|000046b0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 77 65 20 68 |compilat|ion we h|
|000046c0| 61 76 65 20 74 6f 0d 09 | 72 65 73 74 6f 72 65 20 |ave to..|restore |
|000046d0| 74 68 65 20 63 6f 64 65 | 20 67 65 6e 65 72 61 74 |the code| generat|
|000046e0| 6f 72 20 73 74 61 74 65 | 20 74 6f 20 74 68 65 20 |or state| to the |
|000046f0| 73 61 6d 65 20 61 73 20 | 69 74 20 77 61 73 20 77 |same as |it was w|
|00004700| 68 65 6e 20 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |hen comp|ilation |
|00004710| 77 61 73 0d 09 73 75 73 | 70 65 6e 64 65 64 20 2d |was..sus|pended -|
|00004720| 20 69 2e 65 2e 20 61 6c | 6c 20 74 68 65 20 72 65 | i.e. al|l the re|
|00004730| 67 20 63 6f 6e 74 65 6e | 74 73 2c 20 63 73 74 6b |g conten|ts, cstk|
|00004740| 2c 20 65 74 63 20 65 74 | 63 2e 20 20 54 6f 20 73 |, etc et|c. To s|
|00004750| 69 6d 70 69 6c 66 79 20 | 74 68 69 73 20 61 20 62 |impilfy |this a b|
|00004760| 69 74 2c 0d 09 77 65 20 | 64 6f 6e 27 74 20 74 72 |it,..we |don't tr|
|00004770| 79 20 74 6f 20 73 61 76 | 65 20 61 6e 64 20 72 65 |y to sav|e and re|
|00004780| 73 74 6f 72 65 20 74 68 | 65 20 77 6f 72 6c 64 2c |store th|e world,|
|00004790| 20 62 75 74 20 74 72 65 | 61 74 20 73 75 73 70 65 | but tre|at suspe|
|000047a0| 6e 73 69 6f 6e 20 61 6e | 64 20 72 65 73 75 6d 70 |nsion an|d resump|
|000047b0| 74 69 6f 6e 0d 09 6c 69 | 6b 65 20 63 61 6c 6c 69 |tion..li|ke calli|
|000047c0| 6e 67 20 61 20 77 6f 72 | 64 20 77 69 74 68 20 32 |ng a wor|d with 2|
|000047d0| 20 70 61 72 6d 73 20 61 | 6e 64 20 32 20 72 65 73 | parms a|nd 2 res|
|000047e0| 75 6c 74 73 2e 20 20 53 | 6f 20 61 74 20 73 75 73 |ults. S|o at sus|
|000047f0| 70 65 6e 73 69 6f 6e 20 | 74 69 6d 65 2c 20 77 65 |pension |time, we|
|00004800| 0d 09 64 6f 20 61 20 73 | 69 6d 70 6c 65 5f 65 71 |..do a s|imple_eq|
|00004810| 75 61 6c 69 7a 65 20 77 | 69 74 68 20 32 20 63 65 |ualize w|ith 2 ce|
|00004820| 6c 6c 73 2c 20 74 68 65 | 6e 20 61 74 20 72 65 73 |lls, the|n at res|
|00004830| 75 6d 70 74 69 6f 6e 20 | 77 65 20 6a 75 73 74 20 |umption |we just |
|00004840| 69 6e 69 74 69 61 6c 69 | 7a 65 0d 09 74 68 65 20 |initiali|ze..the |
|00004850| 72 65 67 73 20 61 6e 64 | 20 63 73 74 6b 20 62 61 |regs and| cstk ba|
|00004860| 63 6b 20 74 6f 20 74 68 | 61 74 20 73 74 61 74 65 |ck to th|at state|
|00004870| 2e 20 20 54 68 69 73 20 | 69 73 20 61 20 62 69 74 |. This |is a bit|
|00004880| 20 73 69 6d 70 6c 65 72 | 20 74 68 61 6e 20 77 68 | simpler| than wh|
|00004890| 61 74 20 77 65 20 64 6f | 0d 09 61 74 20 63 61 6c |at we do|..at cal|
|000048a0| 6c 5f 68 2c 20 73 69 6e | 63 65 20 77 65 27 72 65 |l_h, sin|ce we're|
|000048b0| 20 6e 6f 74 20 72 65 61 | 6c 6c 79 20 63 61 6c 6c | not rea|lly call|
|000048c0| 69 6e 67 20 61 6e 6f 74 | 68 65 72 20 77 6f 72 64 |ing anot|her word|
|000048d0| 2e 0d 2a 29 0d 0d 3a 20 | 28 73 75 73 70 65 6e 64 |..*)..: |(suspend|
|000048e0| 5f 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 29 0d 09 73 |_compila|tion)..s|
|000048f0| 74 61 74 65 20 20 30 45 | 58 49 54 0d 09 63 75 72 |tate 0E|XIT..cur|
|00004900| 72 2d 64 65 66 20 20 2d | 3e 20 73 76 5f 63 75 72 |r-def -|> sv_cur|
|00004910| 72 2d 64 65 66 0d 09 23 | 50 4c 20 2d 3e 20 73 76 |r-def..#|PL -> sv|
|00004920| 5f 23 50 4c 20 20 23 50 | 20 2d 3e 20 73 76 5f 23 |_#PL #P| -> sv_#|
|00004930| 50 0d 09 43 44 5f 67 70 | 72 23 20 2d 3e 20 73 76 |P..CD_gp|r# -> sv|
|00004940| 5f 43 44 5f 67 70 72 23 | 0d 09 63 6f 6e 73 74 5f |_CD_gpr#|..const_|
|00004950| 64 61 74 61 5f 73 74 61 | 72 74 20 2d 3e 20 73 76 |data_sta|rt -> sv|
|00004960| 5f 63 6f 6e 73 74 5f 64 | 61 74 61 5f 73 74 61 72 |_const_d|ata_star|
|00004970| 74 0d 09 72 65 73 65 74 | 3a 20 63 6f 6e 73 74 5f |t..reset|: const_|
|00004980| 64 61 74 61 20 20 63 6f | 6e 73 74 5f 64 61 74 61 |data co|nst_data|
|00004990| 20 2d 3e 3a 20 73 76 5f | 63 6f 6e 73 74 5f 64 61 | ->: sv_|const_da|
|000049a0| 74 61 0d 09 63 6c 65 61 | 72 3a 20 63 6f 6e 73 74 |ta..clea|r: const|
|000049b0| 5f 64 61 74 61 0d 09 66 | 70 5f 66 6c 61 67 73 20 |_data..f|p_flags |
|000049c0| 2d 3e 20 73 76 5f 66 70 | 5f 66 6c 61 67 73 0d 09 |-> sv_fp|_flags..|
|000049d0| 30 20 2d 3e 20 66 70 5f | 66 6c 61 67 73 0d 09 30 |0 -> fp_|flags..0|
|000049e0| 20 2d 3e 20 23 50 4c 20 | 20 30 20 2d 3e 20 23 50 | -> #PL | 0 -> #P|
|000049f0| 0d 09 32 20 2d 31 20 73 | 69 6d 70 6c 65 5f 65 71 |..2 -1 s|imple_eq|
|00004a00| 75 61 6c 69 7a 65 0d 3b | 0d 0d 3a 20 28 72 65 73 |ualize.;|..: (res|
|00004a10| 75 6d 65 5f 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 29 |ume_comp|ilation)|
|00004a20| 0d 09 73 76 5f 63 75 72 | 72 2d 64 65 66 20 2d 3e |..sv_cur|r-def ->|
|00004a30| 20 63 75 72 72 2d 64 65 | 66 0d 09 73 76 5f 23 50 | curr-de|f..sv_#P|
|00004a40| 4c 20 2d 3e 20 23 50 4c | 20 20 73 76 5f 23 50 20 |L -> #PL| sv_#P |
|00004a50| 2d 3e 20 23 50 0d 09 73 | 76 5f 43 44 5f 67 70 72 |-> #P..s|v_CD_gpr|
|00004a60| 23 20 2d 3e 20 43 44 5f | 67 70 72 23 0d 09 73 76 |# -> CD_|gpr#..sv|
|00004a70| 5f 63 6f 6e 73 74 5f 64 | 61 74 61 5f 73 74 61 72 |_const_d|ata_star|
|00004a80| 74 20 2d 3e 20 63 6f 6e | 73 74 5f 64 61 74 61 5f |t -> con|st_data_|
|00004a90| 73 74 61 72 74 0d 09 73 | 76 5f 63 6f 6e 73 74 5f |start..s|v_const_|
|00004aa0| 64 61 74 61 20 20 2d 3e | 3a 20 63 6f 6e 73 74 5f |data ->|: const_|
|00004ab0| 64 61 74 61 20 20 63 6c | 65 61 72 3a 20 73 76 5f |data cl|ear: sv_|
|00004ac0| 63 6f 6e 73 74 5f 64 61 | 74 61 0d 09 73 76 5f 66 |const_da|ta..sv_f|
|00004ad0| 70 5f 66 6c 61 67 73 20 | 2d 3e 20 66 70 5f 66 6c |p_flags |-> fp_fl|
|00004ae0| 61 67 73 0d 09 32 20 73 | 65 74 75 70 5f 63 73 74 |ags..2 s|etup_cst|
|00004af0| 6b 20 20 75 70 64 61 74 | 65 5f 72 65 66 63 6e 74 |k updat|e_refcnt|
|00004b00| 73 0d 3b 0d 0d 0d 5c 09 | 3d 3d 3d 3d 3d 3d 3d 3d |s.;...\.|========|
|00004b10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 20 20 4c 49 54 |========|=== LIT|
|00004b20| 45 52 41 4c 20 41 44 44 | 52 45 53 53 45 53 20 3d |ERAL ADD|RESSES =|
|00004b30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004b40| 3d 3d 0d 0d 3a 20 28 4c | 49 54 41 44 44 52 29 20 |==..: (L|ITADDR) |
|00004b50| 20 7b 20 67 70 72 23 20 | 6f 66 66 73 20 2d 2d 20 | { gpr# |offs -- |
|00004b60| 7d 0d 09 67 70 72 23 20 | 3e 67 70 72 3a 20 6f 70 |}..gpr# |>gpr: op|
|00004b70| 6e 64 31 0d 09 6f 66 66 | 73 20 4e 49 46 09 5c 20 |nd1..off|s NIF.\ |
|00004b80| 74 68 69 73 20 63 61 6e | 20 68 61 70 70 65 6e 20 |this can| happen |
|00004b90| 69 6e 20 6f 62 6a 65 63 | 74 20 62 69 6e 64 69 6e |in objec|t bindin|
|00004ba0| 67 2c 20 73 6f 20 77 65 | 27 6c 6c 20 73 61 76 65 |g, so we|'ll save|
|00004bb0| 20 74 69 6d 65 0d 09 09 | 09 09 5c 20 20 61 6e 64 | time...|..\ and|
|00004bc0| 20 67 65 74 20 72 69 64 | 20 6f 66 20 69 74 20 68 | get rid| of it h|
|00004bd0| 65 72 65 0d 09 09 6f 70 | 6e 64 31 20 70 75 73 68 |ere...op|nd1 push|
|00004be0| 20 20 45 58 49 54 0d 09 | 54 48 45 4e 0d 09 6f 66 | EXIT..|THEN..of|
|00004bf0| 66 73 20 3e 6c 69 74 3a | 20 6f 70 6e 64 32 0d 09 |fs >lit:| opnd2..|
|00004c00| 6f 74 41 64 64 20 2d 3e | 20 6f 70 65 72 61 74 69 |otAdd ->| operati|
|00004c10| 6f 6e 0d 09 63 6f 6d 70 | 52 65 67 4c 69 74 0d 09 |on..comp|RegLit..|
|00004c20| 72 65 73 31 20 70 75 73 | 68 0d 3b 0d 0d 0d 28 2a |res1 pus|h.;...(*|
|00004c30| 20 4c 49 54 41 44 44 52 | 5f 48 20 68 61 6e 64 6c | LITADDR|_H handl|
|00004c40| 65 73 20 74 68 65 20 67 | 65 6e 65 72 61 74 69 6f |es the g|eneratio|
|00004c50| 6e 20 6f 66 20 61 6e 20 | 61 64 64 72 65 73 73 20 |n of an |address |
|00004c60| 49 4e 20 54 48 45 20 44 | 41 54 41 20 41 52 45 41 |IN THE D|ATA AREA|
|00004c70| 2e 0d 20 20 20 28 6f 6e | 20 74 68 65 20 36 38 6b |.. (on| the 68k|
|00004c80| 20 77 65 20 64 69 64 6e | 27 74 20 68 61 76 65 20 | we didn|'t have |
|00004c90| 74 6f 20 64 69 73 74 69 | 6e 67 75 69 73 68 29 2e |to disti|nguish).|
|00004ca0| 0d 20 20 20 41 74 20 74 | 68 65 20 78 74 2b 32 20 |. At t|he xt+2 |
|00004cb0| 74 68 65 72 65 20 77 69 | 6c 6c 20 62 65 20 61 20 |there wi|ll be a |
|00004cc0| 72 65 6c 6f 63 20 70 6f | 69 6e 74 65 72 20 74 6f |reloc po|inter to|
|00004cd0| 20 74 68 65 20 72 69 67 | 68 74 20 70 6c 61 63 65 | the rig|ht place|
|00004ce0| 20 69 6e 20 74 68 65 0d | 20 20 20 64 61 74 61 20 | in the.| data |
|00004cf0| 61 72 65 61 20 28 78 74 | 3d 63 66 61 29 2e 0d 20 |area (xt|=cfa).. |
|00004d00| 20 20 28 46 6f 72 20 61 | 64 64 72 65 73 73 65 73 | (For a|ddresses|
|00004d10| 20 69 6e 20 74 68 65 20 | 63 6f 64 65 20 61 72 65 | in the |code are|
|00004d20| 61 2c 20 75 73 65 20 6c | 69 74 5f 61 64 64 72 29 |a, use l|it_addr)|
|00004d30| 0d 2a 29 0d 0d 3a 20 4c | 49 54 41 44 44 52 5f 48 |.*)..: L|ITADDR_H|
|00004d40| 20 20 7b 20 78 74 20 2d | 2d 20 7d 09 09 5c 20 57 | { xt -|- }..\ W|
|00004d50| 65 20 68 61 6e 64 6c 65 | 20 74 68 69 73 20 73 69 |e handle| this si|
|00004d60| 6d 70 6c 79 20 61 73 20 | 61 6e 20 61 64 64 20 6f |mply as |an add o|
|00004d70| 66 20 74 68 65 20 62 61 | 73 65 20 72 65 67 20 61 |f the ba|se reg a|
|00004d80| 6e 64 0d 09 09 09 09 09 | 09 09 5c 20 20 74 68 65 |nd......|..\ the|
|00004d90| 20 64 69 73 70 6c 61 63 | 65 6d 65 6e 74 2e 0d 09 | displac|ement...|
|00004da0| 78 74 20 32 2b 20 20 40 | 62 26 64 20 20 28 6c 69 |xt 2+ @|b&d (li|
|00004db0| 74 61 64 64 72 29 0d 3b | 0d 0d 0d 5c 20 4c 49 54 |taddr).;|...\ LIT|
|00004dc0| 5f 41 44 44 52 20 6a 75 | 73 74 20 67 65 6e 65 72 |_ADDR ju|st gener|
|00004dd0| 61 74 65 73 20 61 6e 20 | 61 64 64 72 65 73 73 2c |ates an |address,|
|00004de0| 20 72 65 67 61 72 64 6c | 65 73 73 20 6f 66 20 77 | regardl|ess of w|
|00004df0| 68 65 72 65 20 69 74 20 | 69 73 2e 0d 0d 3a 66 20 |here it |is...:f |
|00004e00| 4c 49 54 5f 41 44 44 52 | 20 20 28 20 61 64 64 72 |LIT_ADDR| ( addr|
|00004e10| 20 2d 2d 20 29 0d 09 62 | 26 64 20 20 28 6c 69 74 | -- )..b|&d (lit|
|00004e20| 61 64 64 72 29 0d 3b 66 | 0d 0d 0d 5c 09 3d 3d 3d |addr).;f|...\.===|
|00004e30| 3d 3d 3d 3d 3d 3d 3d 3d | 20 20 43 4f 4e 53 54 41 |========| CONSTA|
|00004e40| 4e 54 20 44 41 54 41 20 | 28 73 74 6f 72 65 64 20 |NT DATA |(stored |
|00004e50| 69 6e 20 63 6f 64 65 20 | 61 72 65 61 29 20 20 3d |in code |area) =|
|00004e60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0d 0d 3a |========|====...:|
|00004e70| 20 43 4f 44 45 5f 41 44 | 44 52 5f 49 4e 5f 43 55 | CODE_AD|DR_IN_CU|
|00004e80| 52 52 5f 44 45 46 20 20 | 28 20 61 64 64 72 20 2d |RR_DEF |( addr -|
|00004e90| 2d 20 29 0d 09 6c 69 74 | 5f 61 64 64 72 0d 09 24 |- )..lit|_addr..$|
|00004ea0| 20 42 46 30 41 30 30 30 | 30 20 63 6f 64 65 2c 09 | BF0A000|0 code,.|
|00004eb0| 09 5c 20 61 74 20 66 69 | 6e 61 6c 69 7a 61 74 69 |.\ at fi|nalizati|
|00004ec0| 6f 6e 20 74 69 6d 65 2c | 20 69 73 20 72 65 70 6c |on time,| is repl|
|00004ed0| 61 63 65 64 20 77 69 74 | 68 20 61 20 6c 6f 61 64 |aced wit|h a load|
|00004ee0| 0d 09 09 09 09 09 09 09 | 5c 20 20 69 6e 74 6f 20 |........|\ into |
|00004ef0| 72 30 20 6f 66 20 74 68 | 65 20 64 69 73 74 61 6e |r0 of th|e distan|
|00004f00| 63 65 20 74 68 65 20 63 | 6f 64 65 20 69 73 20 6d |ce the c|ode is m|
|00004f10| 6f 76 65 64 0d 09 22 20 | 74 72 65 67 20 2b 22 20 |oved.." |treg +" |
|00004f20| 65 76 61 6c 75 61 74 65 | 0d 3b 0d 0d 0d 28 2a 09 |evaluate|.;...(*.|
|00004f30| 43 4f 4e 53 54 5f 44 41 | 54 41 5f 52 45 46 20 63 |CONST_DA|TA_REF c|
|00004f40| 6f 6d 70 69 6c 65 73 20 | 61 20 70 75 73 68 20 6f |ompiles |a push o|
|00004f50| 66 20 74 68 65 20 61 64 | 64 72 20 6f 66 20 74 68 |f the ad|dr of th|
|00004f60| 65 20 63 75 72 72 65 6e | 74 20 6c 6f 63 61 74 69 |e curren|t locati|
|00004f70| 6f 6e 0d 09 69 6e 20 74 | 68 65 20 63 6f 6e 73 74 |on..in t|he const|
|00004f80| 61 6e 74 20 64 61 74 61 | 2c 20 77 68 69 63 68 20 |ant data|, which |
|00004f90| 77 65 20 75 73 65 20 66 | 6f 72 20 6c 69 74 65 72 |we use f|or liter|
|00004fa0| 61 6c 20 73 74 72 69 6e | 67 73 2c 20 66 6c 6f 61 |al strin|gs, floa|
|00004fb0| 74 69 6e 67 0d 09 70 6f | 69 6e 74 20 6c 69 74 65 |ting..po|int lite|
|00004fc0| 72 61 6c 73 2c 20 65 74 | 63 20 65 74 63 2e 0d 0d |rals, et|c etc...|
|00004fd0| 09 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 69 66 |.For exa|mple, if|
|00004fe0| 20 77 65 20 68 61 76 65 | 20 28 20 61 64 64 72 20 | we have| ( addr |
|00004ff0| 6c 65 6e 20 29 20 72 65 | 66 65 72 72 69 6e 67 20 |len ) re|ferring |
|00005000| 74 6f 20 74 68 65 20 64 | 61 74 61 20 77 65 0d 09 |to the d|ata we..|
|00005010| 77 61 6e 74 20 74 6f 20 | 61 64 64 2c 20 74 68 65 |want to |add, the|
|00005020| 20 6e 6f 72 6d 61 6c 20 | 77 61 79 20 74 6f 20 61 | normal |way to a|
|00005030| 64 64 20 69 74 20 77 6f | 75 6c 64 20 62 65 20 74 |dd it wo|uld be t|
|00005040| 68 69 73 3a 0d 20 20 20 | 0d 09 63 6f 6e 73 74 5f |his:. |..const_|
|00005050| 64 61 74 61 5f 72 65 66 | 09 09 09 5c 20 63 6f 6d |data_ref|...\ com|
|00005060| 70 69 6c 65 73 20 70 75 | 73 68 20 6f 66 20 61 64 |piles pu|sh of ad|
|00005070| 64 72 20 61 74 20 72 75 | 6e 20 74 69 6d 65 0d 09 |dr at ru|n time..|
|00005080| 28 20 61 64 64 72 20 6c | 65 6e 20 29 20 61 64 64 |( addr l|en ) add|
|00005090| 3a 20 63 6f 6e 73 74 5f | 64 61 74 61 0d 20 20 20 |: const_|data. |
|000050a0| 0d 09 54 68 65 20 63 6f | 6e 73 74 61 6e 74 20 64 |..The co|nstant d|
|000050b0| 61 74 61 20 66 6f 72 20 | 74 68 65 20 63 75 72 72 |ata for |the curr|
|000050c0| 65 6e 74 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 77 |ent defi|nition w|
|000050d0| 69 6c 6c 20 62 65 20 70 | 6c 61 63 65 64 20 73 74 |ill be p|laced st|
|000050e0| 72 61 69 67 68 74 0d 09 | 62 65 66 6f 72 65 20 69 |raight..|before i|
|000050f0| 74 20 69 6e 20 74 68 65 | 20 64 69 63 74 69 6f 6e |t in the| diction|
|00005100| 61 72 79 2e 20 20 54 68 | 75 73 20 69 74 20 77 69 |ary. Th|us it wi|
|00005110| 6c 6c 20 62 65 20 72 65 | 61 64 2d 6f 6e 6c 79 20 |ll be re|ad-only |
|00005120| 69 6e 20 69 6e 73 74 61 | 6c 6c 65 64 0d 09 61 70 |in insta|lled..ap|
|00005130| 70 73 2e 20 20 57 68 69 | 6c 65 20 77 65 27 72 65 |ps. Whi|le we're|
|00005140| 20 63 6f 6d 70 69 6c 69 | 6e 67 20 74 68 65 20 64 | compili|ng the d|
|00005150| 65 66 6e 20 77 65 20 70 | 75 74 20 74 68 65 20 63 |efn we p|ut the c|
|00005160| 6f 6e 73 74 20 64 61 74 | 61 20 69 6e 20 74 68 65 |onst dat|a in the|
|00005170| 0d 09 62 79 74 65 73 74 | 72 69 6e 67 20 63 6f 6e |..bytest|ring con|
|00005180| 73 74 5f 64 61 74 61 2c | 20 74 68 65 6e 20 66 69 |st_data,| then fi|
|00005190| 78 20 69 74 20 75 70 20 | 61 74 20 73 65 6d 69 63 |x it up |at semic|
|000051a0| 6f 6c 6f 6e 20 74 69 6d | 65 2c 20 76 69 61 0d 09 |olon tim|e, via..|
|000051b0| 41 44 44 5f 43 4f 4e 53 | 54 5f 44 41 54 41 2e 0d |ADD_CONS|T_DATA..|
|000051c0| 09 0d 09 54 68 69 73 20 | 6d 65 63 68 61 6e 69 73 |...This |mechanis|
|000051d0| 6d 20 72 65 70 6c 61 63 | 65 73 20 6c 69 74 65 72 |m replac|es liter|
|000051e0| 61 6c 20 73 74 72 69 6e | 67 73 20 61 6e 64 20 77 |al strin|gs and w|
|000051f0| 40 28 49 50 29 20 73 74 | 75 66 66 20 74 68 61 74 |@(IP) st|uff that|
|00005200| 20 75 73 65 64 0d 09 74 | 6f 20 67 6f 20 69 6e 20 | used..t|o go in |
|00005210| 74 68 65 20 6d 69 64 64 | 6c 65 20 6f 66 20 74 68 |the midd|le of th|
|00005220| 65 20 63 6f 64 65 20 69 | 74 73 65 6c 66 2e 0d 2a |e code i|tself..*|
|00005230| 29 0d 0d 3a 20 43 4f 4e | 53 54 5f 44 41 54 41 5f |)..: CON|ST_DATA_|
|00005240| 52 45 46 20 20 7b 20 5c | 20 67 70 72 23 20 64 69 |REF { \| gpr# di|
|00005250| 73 70 6c 20 2d 2d 20 7d | 0d 09 30 20 2d 3e 20 73 |spl -- }|..0 -> s|
|00005260| 76 4f 70 63 6f 64 65 0d | 09 63 6f 6e 73 74 5f 64 |vOpcode.|.const_d|
|00005270| 61 74 61 5f 73 74 61 72 | 74 20 20 70 6f 73 3a 20 |ata_star|t pos: |
|00005280| 63 6f 6e 73 74 5f 64 61 | 74 61 20 2b 09 09 5c 20 |const_da|ta +..\ |
|00005290| 74 68 65 20 61 64 64 72 | 20 77 65 20 77 61 6e 74 |the addr| we want|
|000052a0| 0d 09 62 26 64 20 20 2d | 3e 20 64 69 73 70 6c 20 |..b&d -|> displ |
|000052b0| 2d 3e 20 67 70 72 23 0d | 5b 20 70 70 63 3f 20 5d |-> gpr#.|[ ppc? ]|
|000052c0| 20 5b 69 66 5d 0d 09 64 | 69 73 70 6c 20 74 72 75 | [if]..d|ispl tru|
|000052d0| 65 20 31 36 62 69 74 73 | 3f 20 6e 69 70 0d 09 4e |e 16bits|? nip..N|
|000052e0| 49 46 0d 09 09 43 44 5f | 67 70 72 23 20 4e 49 46 |IF...CD_|gpr# NIF|
|000052f0| 20 20 73 65 74 5f 43 44 | 5f 67 70 72 23 20 20 54 | set_CD|_gpr# T|
|00005300| 48 45 4e 09 09 5c 20 73 | 65 74 73 20 43 44 5f 67 |HEN..\ s|ets CD_g|
|00005310| 70 72 23 0d 09 09 43 44 | 5f 67 70 72 23 0d 09 09 |pr#...CD|_gpr#...|
|00005320| 49 46 09 09 09 09 09 09 | 09 09 09 5c 20 69 66 20 |IF......|...\ if |
|00005330| 73 75 63 63 65 73 73 66 | 75 6c 2c 20 77 65 20 75 |successf|ul, we u|
|00005340| 73 65 20 69 74 0d 09 09 | 09 66 61 6c 73 65 20 2d |se it...|.false -|
|00005350| 3e 20 6c 65 61 66 3f 0d | 09 09 09 43 44 5f 67 70 |> leaf?.|...CD_gp|
|00005360| 72 23 20 2d 3e 20 67 70 | 72 23 0d 09 09 09 63 6f |r# -> gp|r#....co|
|00005370| 6e 73 74 5f 64 61 74 61 | 5f 73 74 61 72 74 20 43 |nst_data|_start C|
|00005380| 44 5f 67 70 72 5f 6c 6f | 63 20 2d 20 20 70 6f 73 |D_gpr_lo|c - pos|
|00005390| 3a 20 63 6f 6e 73 74 5f | 64 61 74 61 20 2b 0d 09 |: const_|data +..|
|000053a0| 09 09 2d 3e 20 64 69 73 | 70 6c 0d 09 09 54 48 45 |..-> dis|pl...THE|
|000053b0| 4e 0d 09 54 48 45 4e 0d | 5b 74 68 65 6e 5d 0d 09 |N..THEN.|[then]..|
|000053c0| 67 70 72 23 20 64 69 73 | 70 6c 20 20 28 6c 69 74 |gpr# dis|pl (lit|
|000053d0| 61 64 64 72 29 0d 3b 0d | 0d 0d 70 70 63 3f 20 6e |addr).;.|..ppc? n|
|000053e0| 6f 74 0d 5b 49 46 5d 0d | 30 09 76 61 6c 75 65 09 |ot.[IF].|0.value.|
|000053f0| 70 72 65 76 5f 6c 69 6e | 6b 09 09 5c 20 73 61 76 |prev_lin|k..\ sav|
|00005400| 65 73 20 70 72 65 76 20 | 6c 69 6e 6b 20 74 6f 20 |es prev |link to |
|00005410| 63 75 72 72 65 6e 74 20 | 6d 65 74 68 6f 64 20 2d |current |method -|
|00005420| 20 69 6e 0d 5b 54 48 45 | 4e 5d 09 09 09 09 09 09 | in.[THE|N]......|
|00005430| 5c 20 20 70 70 63 20 6d | 6f 64 65 2c 20 69 74 27 |\ ppc m|ode, it'|
|00005440| 73 20 69 6e 20 63 67 2d | 63 6c 61 73 73 20 77 68 |s in cg-|class wh|
|00005450| 69 63 68 20 67 65 74 73 | 0d 09 09 09 09 09 09 09 |ich gets|........|
|00005460| 5c 20 20 6c 6f 61 64 65 | 64 20 66 69 72 73 74 0d |\ loade|d first.|
|00005470| 0d 0d 5c 20 46 50 5f 41 | 44 4a 55 53 54 20 61 6e |..\ FP_A|DJUST an|
|00005480| 64 20 41 44 44 5f 43 4f | 4e 53 54 5f 44 41 54 41 |d ADD_CO|NST_DATA|
|00005490| 20 6d 61 79 20 70 75 74 | 20 73 6f 6d 65 20 69 6e | may put| some in|
|000054a0| 66 6f 20 61 74 20 6f 72 | 20 62 65 66 6f 72 65 20 |fo at or| before |
|000054b0| 74 68 65 20 73 74 61 72 | 74 20 6f 66 0d 5c 20 20 |the star|t of.\ |
|000054c0| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 2c 20 |the defi|nition, |
|000054d0| 61 6e 64 20 6d 6f 76 65 | 20 69 74 20 75 70 20 69 |and move| it up i|
|000054e0| 6e 20 6d 65 6d 6f 72 79 | 20 74 6f 20 6d 61 6b 65 |n memory| to make|
|000054f0| 20 72 6f 6f 6d 2e 20 20 | 54 68 65 73 65 20 63 61 | room. |These ca|
|00005500| 6e 27 74 20 62 65 0d 5c | 20 20 63 61 6c 6c 65 64 |n't be.\| called|
|00005510| 20 75 6e 74 69 6c 20 73 | 65 6d 69 63 6f 6c 6f 6e | until s|emicolon|
|00005520| 20 74 69 6d 65 2c 20 73 | 69 6e 63 65 20 61 6c 6c | time, s|ince all|
|00005530| 20 74 68 65 69 72 20 69 | 6e 66 6f 20 6d 69 67 68 | their i|nfo migh|
|00005540| 74 6e 27 74 20 62 65 20 | 74 68 65 72 65 0d 5c 20 |tn't be |there.\ |
|00005550| 20 74 69 6c 6c 20 74 68 | 65 6e 2e 0d 0d 3a 66 20 | till th|en...:f |
|00005560| 46 50 5f 41 44 4a 55 53 | 54 20 7b 20 5c 20 64 69 |FP_ADJUS|T { \ di|
|00005570| 73 74 20 2d 2d 20 7d 0d | 09 66 70 5f 66 6c 61 67 |st -- }.|.fp_flag|
|00005580| 73 3f 20 20 30 45 58 49 | 54 0d 0d 09 63 75 72 72 |s? 0EXI|T...curr|
|00005590| 2d 64 65 66 09 09 09 09 | 09 5c 20 73 72 63 0d 09 |-def....|.\ src..|
|000055a0| 64 75 70 20 34 2b 20 20 | 09 09 09 09 09 5c 20 64 |dup 4+ |.....\ d|
|000055b0| 73 74 0d 09 43 44 50 20 | 63 75 72 72 2d 64 65 66 |st..CDP |curr-def|
|000055c0| 20 2d 09 09 09 09 5c 20 | 6c 65 6e 20 66 6f 72 20 | -....\ |len for |
|000055d0| 6d 6f 76 65 0d 09 6d 6f | 76 65 0d 0d 5c 20 6e 6f |move..mo|ve..\ no|
|000055e0| 77 20 77 65 20 61 64 6a | 75 73 74 20 73 6f 6d 65 |w we adj|ust some|
|000055f0| 20 6f 74 68 65 72 20 74 | 68 69 6e 67 73 2c 20 73 | other t|hings, s|
|00005600| 69 6e 63 65 20 77 65 20 | 6a 75 73 74 20 6d 6f 76 |ince we |just mov|
|00005610| 65 64 20 74 68 65 20 64 | 65 66 69 6e 69 74 69 6f |ed the d|efinitio|
|00005620| 6e 3a 0d 0d 09 34 20 2b | 2b 3e 20 64 69 73 74 61 |n:...4 +|+> dista|
|00005630| 6e 63 65 5f 63 6f 64 65 | 5f 6d 6f 76 65 64 0d 09 |nce_code|_moved..|
|00005640| 34 20 2b 2b 3e 20 63 75 | 72 72 2d 64 65 66 09 34 |4 ++> cu|rr-def.4|
|00005650| 20 2b 2b 3e 20 63 75 72 | 72 2d 64 65 66 2d 63 6f | ++> cur|r-def-co|
|00005660| 64 65 0d 09 34 20 2b 2b | 3e 20 43 44 50 20 20 34 |de..4 ++|> CDP 4|
|00005670| 20 2b 2b 3e 20 65 78 69 | 74 5f 6c 6f 63 0d 0d 09 | ++> exi|t_loc...|
|00005680| 69 6e 69 74 5f 65 6e 74 | 72 79 20 49 46 20 20 34 |init_ent|ry IF 4|
|00005690| 20 2b 2b 3e 20 69 6e 69 | 74 5f 65 6e 74 72 79 20 | ++> ini|t_entry |
|000056a0| 20 54 48 45 4e 0d 09 0d | 5c 20 6e 6f 77 20 77 65 | THEN...|\ now we|
|000056b0| 20 6d 6f 76 65 20 74 68 | 65 20 46 50 20 66 6c 61 | move th|e FP fla|
|000056c0| 67 20 62 79 74 65 73 20 | 69 6e 74 6f 20 74 68 65 |g bytes |into the|
|000056d0| 20 61 72 65 61 20 77 65 | 20 6d 61 64 65 20 66 6f | area we| made fo|
|000056e0| 72 20 69 74 0d 0d 09 66 | 70 5f 66 6c 61 67 73 20 |r it...f|p_flags |
|000056f0| 20 24 20 42 42 30 30 30 | 30 30 30 20 6f 72 20 20 | $ BB000|000 or |
|00005700| 63 75 72 72 2d 64 65 66 | 20 34 2d 20 21 0d 3b 66 |curr-def| 4- !.;f|
|00005710| 0d 0d 09 0d 3a 66 20 41 | 44 44 5f 43 4f 4e 53 54 |....:f A|DD_CONST|
|00005720| 5f 44 41 54 41 20 20 7b | 20 5c 20 64 69 73 74 20 |_DATA {| \ dist |
|00005730| 2d 2d 20 7d 0d 09 72 65 | 73 65 74 3a 20 63 6f 6e |-- }..re|set: con|
|00005740| 73 74 5f 64 61 74 61 0d | 09 6c 65 6e 3a 20 63 6f |st_data.|.len: co|
|00005750| 6e 73 74 5f 64 61 74 61 | 20 20 30 45 58 49 54 0d |nst_data| 0EXIT.|
|00005760| 0d 5c 20 66 69 72 73 74 | 20 77 65 20 6d 6f 76 65 |.\ first| we move|
|00005770| 20 74 68 65 20 77 68 6f | 6c 65 20 64 65 66 6e 20 | the who|le defn |
|00005780| 64 6f 77 6e 20 74 6f 20 | 6d 61 6b 65 20 72 6f 6f |down to |make roo|
|00005790| 6d 20 66 6f 72 20 74 68 | 65 20 63 6f 6e 73 74 20 |m for th|e const |
|000057a0| 64 61 74 61 2e 0d 5c 20 | 20 41 74 20 74 68 69 73 |data..\ | At this|
|000057b0| 20 70 6f 69 6e 74 20 63 | 6f 6e 73 74 5f 64 61 74 | point c|onst_dat|
|000057c0| 61 5f 73 74 61 72 74 20 | 77 69 6c 6c 20 70 6f 69 |a_start |will poi|
|000057d0| 6e 74 20 74 6f 20 74 68 | 65 20 6c 69 6e 6b 20 66 |nt to th|e link f|
|000057e0| 69 65 6c 64 20 6f 66 0d | 5c 20 20 74 68 65 20 63 |ield of.|\ the c|
|000057f0| 75 72 72 65 6e 74 20 64 | 65 66 69 6e 69 74 69 6f |urrent d|efinitio|
|00005800| 6e 2c 20 6f 72 20 6f 75 | 72 20 6d 61 72 6b 65 72 |n, or ou|r marker|
|00005810| 20 77 6f 72 64 20 69 66 | 20 69 74 27 73 20 61 20 | word if| it's a |
|00005820| 66 6f 72 77 61 72 64 0d | 5c 20 20 6f 72 20 3a 6e |forward.|\ or :n|
|00005830| 6f 6e 61 6d 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |oname de|finition|
|00005840| 2e 0d 0d 09 6c 65 6e 3a | 20 63 6f 6e 73 74 5f 64 |....len:| const_d|
|00005850| 61 74 61 20 20 23 61 6c | 69 67 6e 34 20 20 2d 3e |ata #al|ign4 ->|
|00005860| 20 64 69 73 74 0d 0d 09 | 66 6f 72 77 61 72 64 3f | dist...|forward?|
|00005870| 20 6e 6f 6e 61 6d 65 3f | 20 6f 72 20 20 6d 6c 6f | noname?| or mlo|
|00005880| 63 3f 20 6f 72 0d 09 4e | 49 46 0d 09 09 6d 65 74 |c? or..N|IF...met|
|00005890| 68 6f 64 3f 0d 09 09 49 | 46 0d 09 09 5b 20 70 70 |hod?...I|F...[ pp|
|000058a0| 63 3f 20 5d 20 5b 69 66 | 5d 0d 09 09 09 64 69 73 |c? ] [if|]....dis|
|000058b0| 74 20 6e 65 67 61 74 65 | 20 5e 6d 65 74 68 5f 6c |t negate| ^meth_l|
|000058c0| 69 6e 6b 20 2b 21 09 09 | 09 5c 20 75 70 64 61 74 |ink +!..|.\ updat|
|000058d0| 65 20 6d 65 74 68 6f 64 | 27 73 20 6c 69 6e 6b 20 |e method|'s link |
|000058e0| 66 69 65 6c 64 0d 09 09 | 5b 65 6c 73 65 5d 0d 09 |field...|[else]..|
|000058f0| 09 09 64 69 73 74 20 6e | 65 67 61 74 65 20 63 6f |..dist n|egate co|
|00005900| 6e 73 74 5f 64 61 74 61 | 5f 73 74 61 72 74 20 34 |nst_data|_start 4|
|00005910| 2b 20 2b 21 09 5c 20 75 | 70 64 61 74 65 20 6d 65 |+ +!.\ u|pdate me|
|00005920| 74 68 6f 64 27 73 20 6c | 69 6e 6b 20 66 69 65 6c |thod's l|ink fiel|
|00005930| 64 0d 09 09 5b 74 68 65 | 6e 5d 0d 09 09 09 64 69 |d...[the|n]....di|
|00005940| 73 74 20 20 70 72 65 76 | 5f 6c 69 6e 6b 20 20 2b |st prev|_link +|
|00005950| 21 0d 09 09 45 4c 53 45 | 0d 09 09 09 64 69 73 74 |!...ELSE|....dist|
|00005960| 0d 09 09 09 63 6f 6e 73 | 74 5f 64 61 74 61 5f 73 |....cons|t_data_s|
|00005970| 74 61 72 74 20 34 2b 09 | 09 09 5c 20 73 74 61 72 |tart 4+.|..\ star|
|00005980| 74 20 6f 66 20 6e 61 6d | 65 20 66 69 65 6c 64 20 |t of nam|e field |
|00005990| 2d 20 6e 6f 74 65 2c 20 | 63 61 6e 27 74 20 75 73 |- note, |can't us|
|000059a0| 65 0d 09 09 09 09 09 09 | 09 09 09 09 5c 20 20 22 |e.......|....\ "|
|000059b0| 63 75 72 72 2d 64 65 66 | 20 3e 6e 61 6d 65 22 20 |curr-def| >name" |
|000059c0| 61 73 20 69 74 27 73 20 | 61 20 50 50 43 20 68 65 |as it's |a PPC he|
|000059d0| 61 64 65 72 21 0d 09 09 | 09 74 68 72 65 61 64 20 |ader!...|.thread |
|000059e0| 20 2b 21 09 09 09 09 09 | 09 09 5c 20 69 6e 63 72 | +!.....|..\ incr|
|000059f0| 20 43 4f 4e 54 45 58 54 | 20 65 6e 74 72 79 20 62 | CONTEXT| entry b|
|00005a00| 79 20 64 69 73 74 0d 09 | 09 09 64 69 73 74 20 6e |y dist..|..dist n|
|00005a10| 65 67 61 74 65 20 63 6f | 6e 73 74 5f 64 61 74 61 |egate co|nst_data|
|00005a20| 5f 73 74 61 72 74 20 2b | 21 09 09 5c 20 61 6e 64 |_start +|!..\ and|
|00005a30| 20 75 70 64 61 74 65 20 | 64 69 63 20 6c 69 6e 6b | update |dic link|
|00005a40| 20 66 6f 72 20 74 68 69 | 73 20 64 65 66 6e 0d 09 | for thi|s defn..|
|00005a50| 09 09 64 69 73 74 20 2b | 2b 3e 20 6c 61 74 65 73 |..dist +|+> lates|
|00005a60| 74 0d 09 09 54 48 45 4e | 0d 09 54 48 45 4e 0d 0d |t...THEN|..THEN..|
|00005a70| 09 63 6f 6e 73 74 5f 64 | 61 74 61 5f 73 74 61 72 |.const_d|ata_star|
|00005a80| 74 09 09 09 09 09 5c 20 | 73 72 63 0d 09 64 75 70 |t.....\ |src..dup|
|00005a90| 20 64 69 73 74 20 2b 20 | 20 09 09 09 09 09 09 5c | dist + | ......\|
|00005aa0| 20 64 73 74 0d 09 43 44 | 50 20 63 6f 6e 73 74 5f | dst..CD|P const_|
|00005ab0| 64 61 74 61 5f 73 74 61 | 72 74 20 2d 09 09 09 09 |data_sta|rt -....|
|00005ac0| 5c 20 6c 65 6e 20 66 6f | 72 20 6d 6f 76 65 0d 09 |\ len fo|r move..|
|00005ad0| 6d 6f 76 65 0d 0d 5c 20 | 6e 6f 77 20 77 65 20 61 |move..\ |now we a|
|00005ae0| 64 6a 75 73 74 20 73 6f | 6d 65 20 6f 74 68 65 72 |djust so|me other|
|00005af0| 20 74 68 69 6e 67 73 2c | 20 73 69 6e 63 65 20 77 | things,| since w|
|00005b00| 65 20 6a 75 73 74 20 6d | 6f 76 65 64 20 74 68 65 |e just m|oved the|
|00005b10| 20 64 65 66 69 6e 69 74 | 69 6f 6e 3a 0d 0d 09 64 | definit|ion:...d|
|00005b20| 69 73 74 20 2b 2b 3e 20 | 64 69 73 74 61 6e 63 65 |ist ++> |distance|
|00005b30| 5f 63 6f 64 65 5f 6d 6f | 76 65 64 0d 09 64 69 73 |_code_mo|ved..dis|
|00005b40| 74 20 2b 2b 3e 20 63 75 | 72 72 2d 64 65 66 09 64 |t ++> cu|rr-def.d|
|00005b50| 69 73 74 20 2b 2b 3e 20 | 63 75 72 72 2d 64 65 66 |ist ++> |curr-def|
|00005b60| 2d 63 6f 64 65 0d 09 64 | 69 73 74 20 2b 2b 3e 20 |-code..d|ist ++> |
|00005b70| 43 44 50 20 20 64 69 73 | 74 20 2b 2b 3e 20 65 78 |CDP dis|t ++> ex|
|00005b80| 69 74 5f 6c 6f 63 0d 0d | 09 69 6e 69 74 5f 65 6e |it_loc..|.init_en|
|00005b90| 74 72 79 20 49 46 20 20 | 64 69 73 74 20 2b 2b 3e |try IF |dist ++>|
|00005ba0| 20 69 6e 69 74 5f 65 6e | 74 72 79 20 20 54 48 45 | init_en|try THE|
|00005bb0| 4e 0d 09 0d 5c 20 6e 6f | 77 20 77 65 20 63 6f 70 |N...\ no|w we cop|
|00005bc0| 79 20 74 68 65 20 63 6f | 6e 73 74 20 64 61 74 61 |y the co|nst data|
|00005bd0| 20 69 6e 74 6f 20 74 68 | 65 20 61 72 65 61 20 77 | into th|e area w|
|00005be0| 65 20 6d 61 64 65 20 66 | 6f 72 20 69 74 0d 0d 09 |e made f|or it...|
|00005bf0| 61 6c 6c 3a 20 63 6f 6e | 73 74 5f 64 61 74 61 0d |all: con|st_data.|
|00005c00| 09 63 6f 6e 73 74 5f 64 | 61 74 61 5f 73 74 61 72 |.const_d|ata_star|
|00005c10| 74 20 20 73 77 61 70 20 | 20 6d 6f 76 65 0d 3b 66 |t swap | move.;f|
|00005c20| 0d 0d 0d 50 50 43 3f 20 | 5b 49 46 5d 0d 0d 3a 20 |...PPC? |[IF]..: |
|00005c30| 52 45 4c 4f 43 3e 43 4f | 4e 53 54 5f 44 41 54 41 |RELOC>CO|NST_DATA|
|00005c40| 09 09 5c 20 28 20 78 74 | 20 2d 2d 20 29 20 20 20 |..\ ( xt| -- ) |
|00005c50| 4a 75 73 74 20 6e 65 65 | 64 65 64 20 74 6f 20 73 |Just nee|ded to s|
|00005c60| 75 70 70 6f 72 74 20 58 | 54 53 7b 20 69 6e 20 7a |upport X|TS{ in z|
|00005c70| 42 61 73 65 2c 0d 09 09 | 09 09 09 09 5c 20 20 73 |Base,...|....\ s|
|00005c80| 69 6e 63 65 20 61 74 20 | 74 68 61 74 20 70 6f 69 |ince at |that poi|
|00005c90| 6e 74 20 77 65 20 63 61 | 6e 27 74 20 73 65 6e 64 |nt we ca|n't send|
|00005ca0| 20 6d 65 73 73 61 67 65 | 73 20 79 65 74 20 73 6f | message|s yet so|
|00005cb0| 20 77 65 0d 09 09 09 09 | 09 09 5c 20 20 63 61 6e | we.....|..\ can|
|00005cc0| 27 74 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 63 6f |'t manip|ulate co|
|00005cd0| 6e 73 74 5f 64 61 74 61 | 20 64 69 72 65 63 74 6c |nst_data| directl|
|00005ce0| 79 2e 0d 09 30 20 2b 4c | 3a 20 63 6f 6e 73 74 5f |y...0 +L|: const_|
|00005cf0| 64 61 74 61 0d 09 5e 31 | 73 74 3a 20 63 6f 6e 73 |data..^1|st: cons|
|00005d00| 74 5f 64 61 74 61 20 34 | 2d 0d 09 72 65 6c 6f 63 |t_data 4|-..reloc|
|00005d10| 21 0d 3b 0d 0d 5b 54 48 | 45 4e 5d 0d 0d 0d 28 2a |!.;..[TH|EN]...(*|
|00005d20| 09 43 41 4c 4c 5f 45 58 | 54 45 52 4e 20 68 61 6e |.CALL_EX|TERN han|
|00005d30| 64 6c 65 73 20 61 6e 20 | 65 78 74 65 72 6e 61 6c |dles an |external|
|00005d40| 20 63 61 6c 6c 2e 20 20 | 54 68 69 73 20 72 65 71 | call. |This req|
|00005d50| 75 69 72 65 73 20 74 68 | 61 74 20 77 65 20 73 65 |uires th|at we se|
|00005d60| 74 20 74 68 69 6e 67 73 | 20 75 70 20 61 73 0d 09 |t things| up as..|
|00005d70| 74 68 65 20 50 6f 77 65 | 72 50 43 20 76 6f 6c 75 |the Powe|rPC volu|
|00005d80| 6d 65 20 6f 66 20 49 4d | 20 73 61 79 73 3a 0d 0d |me of IM| says:..|
|00005d90| 31 2e 09 57 65 20 68 61 | 76 65 20 61 20 70 6f 69 |1..We ha|ve a poi|
|00005da0| 6e 74 65 72 20 77 68 69 | 63 68 20 69 73 20 72 65 |nter whi|ch is re|
|00005db0| 73 6f 6c 76 65 64 20 62 | 79 20 74 68 65 20 43 46 |solved b|y the CF|
|00005dc0| 4d 20 2d 20 74 68 69 73 | 20 77 69 6c 6c 0d 09 62 |M - this| will..b|
|00005dd0| 65 20 74 68 65 20 61 64 | 64 72 65 73 73 20 6f 66 |e the ad|dress of|
|00005de0| 20 61 20 74 72 61 6e 73 | 69 74 69 6f 6e 20 76 65 | a trans|ition ve|
|00005df0| 63 74 6f 72 2e 20 20 54 | 68 69 73 20 70 6f 69 6e |ctor. T|his poin|
|00005e00| 74 65 72 20 77 69 6c 6c | 20 62 65 20 69 6e 20 74 |ter will| be in t|
|00005e10| 68 65 0d 09 64 61 74 61 | 20 61 72 65 61 20 28 73 |he..data| area (s|
|00005e20| 69 6e 63 65 20 69 74 20 | 67 65 74 73 20 63 68 61 |ince it |gets cha|
|00005e30| 6e 67 65 64 29 2c 20 61 | 6e 64 20 68 61 73 20 61 |nged), a|nd has a|
|00005e40| 20 72 65 6c 6f 63 20 61 | 64 64 72 20 70 6f 69 6e | reloc a|ddr poin|
|00005e50| 74 69 6e 67 0d 09 74 6f | 20 69 74 20 69 6e 20 74 |ting..to| it in t|
|00005e60| 68 65 20 63 6f 64 65 20 | 61 72 65 61 2c 20 77 68 |he code |area, wh|
|00005e70| 69 63 68 20 62 65 6c 6f | 6e 67 73 20 74 6f 20 74 |ich belo|ngs to t|
|00005e80| 68 65 20 53 59 53 43 41 | 4c 4c 20 6f 72 20 45 58 |he SYSCA|LL or EX|
|00005e90| 54 45 52 4e 0d 09 77 6f | 72 64 2e 0d 09 0d 09 57 |TERN..wo|rd.....W|
|00005ea0| 65 20 68 61 76 65 20 74 | 6f 20 61 6c 6c 6f 77 20 |e have t|o allow |
|00005eb0| 66 6f 72 20 6e 65 77 20 | 65 78 74 65 72 6e 61 6c |for new |external|
|00005ec0| 20 63 61 6c 6c 73 20 74 | 6f 20 62 65 20 61 73 6b | calls t|o be ask|
|00005ed0| 65 64 20 66 6f 72 2c 20 | 74 68 65 6e 0d 09 65 78 |ed for, |then..ex|
|00005ee0| 65 63 75 74 65 64 20 73 | 74 72 61 69 67 68 74 20 |ecuted s|traight |
|00005ef0| 61 77 61 79 2c 20 73 6f | 20 77 65 20 75 73 65 20 |away, so| we use |
|00005f00| 61 20 73 63 68 65 6d 65 | 20 77 68 65 72 65 20 77 |a scheme| where w|
|00005f10| 68 65 6e 20 77 65 20 64 | 6f 20 61 6e 0d 09 65 78 |hen we d|o an..ex|
|00005f20| 74 65 72 6e 61 6c 20 63 | 61 6c 6c 2c 20 77 65 20 |ternal c|all, we |
|00005f30| 63 68 65 63 6b 20 77 68 | 65 74 68 65 72 20 74 68 |check wh|ether th|
|00005f40| 65 20 70 6f 69 6e 74 65 | 72 20 68 61 73 20 62 65 |e pointe|r has be|
|00005f50| 65 6e 20 72 65 73 6f 6c | 76 65 64 0d 09 79 65 74 |en resol|ved..yet|
|00005f60| 2c 20 61 6e 64 20 72 65 | 73 6f 6c 76 65 20 69 74 |, and re|solve it|
|00005f70| 20 69 66 20 69 74 20 68 | 61 73 6e 27 74 2e 20 20 | if it h|asn't. |
|00005f80| 57 65 20 63 61 6e 20 65 | 61 73 69 6c 79 20 74 65 |We can e|asily te|
|00005f90| 6c 6c 2c 20 73 69 6e 63 | 65 20 77 65 0d 09 69 6e |ll, sinc|e we..in|
|00005fa0| 69 74 69 61 6c 69 7a 65 | 20 65 61 63 68 20 70 6f |itialize| each po|
|00005fb0| 69 6e 74 65 72 20 74 6f | 20 6e 69 6c 50 2c 20 77 |inter to| nilP, w|
|00005fc0| 68 69 63 68 20 69 73 20 | 61 6e 20 69 6c 6c 65 67 |hich is |an illeg|
|00005fd0| 61 6c 20 61 64 64 72 65 | 73 73 2e 0d 09 54 68 69 |al addre|ss...Thi|
|00005fe0| 73 20 74 65 73 74 20 61 | 6e 64 20 74 68 65 20 63 |s test a|nd the c|
|00005ff0| 61 6c 6c 20 74 6f 20 46 | 69 6e 64 53 79 6d 62 6f |all to F|indSymbo|
|00006000| 6c 20 74 6f 20 72 65 73 | 6f 6c 76 65 20 69 74 2c |l to res|olve it,|
|00006010| 20 69 73 20 69 6e 0d 09 | 67 65 74 5f 74 72 61 6e | is in..|get_tran|
|00006020| 73 69 74 69 6f 6e 5f 76 | 65 63 74 6f 72 20 77 68 |sition_v|ector wh|
|00006030| 69 63 68 20 69 73 20 63 | 61 6c 6c 65 64 20 61 74 |ich is c|alled at|
|00006040| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|00006050| 66 20 6f 75 72 0d 09 65 | 78 74 65 72 6e 61 6c 20 |f our..e|xternal |
|00006060| 63 61 6c 6c 20 73 65 71 | 75 65 6e 63 65 2e 0d 09 |call seq|uence...|
|00006070| 0d 09 57 65 20 63 6f 75 | 6c 64 20 73 61 76 65 20 |..We cou|ld save |
|00006080| 61 20 63 6f 75 70 6c 65 | 20 6f 66 20 69 6e 73 74 |a couple| of inst|
|00006090| 72 75 63 74 69 6f 6e 73 | 20 62 79 20 70 72 65 2d |ructions| by pre-|
|000060a0| 72 65 73 6f 6c 76 69 6e | 67 20 73 79 6d 62 6f 6c |resolvin|g symbol|
|000060b0| 73 20 74 68 61 74 0d 09 | 61 72 65 20 61 6c 72 65 |s that..|are alre|
|000060c0| 61 64 79 20 69 6e 20 74 | 68 65 20 64 69 63 74 69 |ady in t|he dicti|
|000060d0| 6f 6e 61 72 79 20 69 6d | 61 67 65 2c 20 62 75 74 |onary im|age, but|
|000060e0| 20 69 74 27 73 20 6e 6f | 74 20 77 6f 72 74 68 20 | it's no|t worth |
|000060f0| 69 74 20 2d 20 69 74 27 | 73 20 0d 09 62 65 74 74 |it - it'|s ..bett|
|00006100| 65 72 20 74 6f 20 75 73 | 65 20 6a 75 73 74 20 6f |er to us|e just o|
|00006110| 6e 65 20 73 63 68 65 6d | 65 2c 20 61 6e 64 20 77 |ne schem|e, and w|
|00006120| 65 20 64 6f 20 6e 65 65 | 64 20 74 6f 20 62 65 20 |e do nee|d to be |
|00006130| 61 62 6c 65 20 74 6f 20 | 72 65 73 6f 6c 76 65 0d |able to |resolve.|
|00006140| 09 6f 6e 20 64 65 6d 61 | 6e 64 2c 20 73 6f 20 74 |.on dema|nd, so t|
|00006150| 68 61 74 27 73 20 74 68 | 65 20 77 61 79 20 77 65 |hat's th|e way we|
|00006160| 20 64 6f 20 69 74 2e 0d | 0d 09 54 68 65 20 74 72 | do it..|..The tr|
|00006170| 61 6e 73 69 74 69 6f 6e | 20 76 65 63 74 6f 72 20 |ansition| vector |
|00006180| 68 61 73 20 32 20 61 64 | 64 72 65 73 73 65 73 20 |has 2 ad|dresses |
|00006190| 2d 20 74 68 65 20 61 64 | 64 72 20 66 6f 72 20 75 |- the ad|dr for u|
|000061a0| 73 20 74 6f 20 62 72 61 | 6e 63 68 20 74 6f 2c 0d |s to bra|nch to,.|
|000061b0| 09 61 6e 64 20 74 68 65 | 20 6e 65 77 20 52 54 4f |.and the| new RTO|
|000061c0| 43 20 76 61 6c 75 65 2e | 20 20 54 68 65 20 64 65 |C value.| The de|
|000061d0| 73 74 20 61 64 64 72 20 | 68 61 73 20 74 6f 20 62 |st addr |has to b|
|000061e0| 65 20 6c 6f 61 64 65 64 | 20 69 6e 74 6f 20 74 68 |e loaded| into th|
|000061f0| 65 20 43 54 52 0d 09 6f | 72 20 74 68 65 20 4c 52 |e CTR..o|r the LR|
|00006200| 20 66 6f 72 20 75 73 20 | 74 6f 20 75 73 65 20 69 | for us |to use i|
|00006210| 74 20 61 73 20 61 20 62 | 72 61 6e 63 68 20 74 61 |t as a b|ranch ta|
|00006220| 72 67 65 74 2e 20 20 57 | 65 20 75 73 65 20 74 68 |rget. W|e use th|
|00006230| 65 20 43 54 52 20 2d 20 | 73 65 65 0d 09 62 65 6c |e CTR - |see..bel|
|00006240| 6f 77 20 66 6f 72 20 74 | 68 65 20 72 65 61 73 6f |ow for t|he reaso|
|00006250| 6e 20 66 6f 72 20 74 68 | 69 73 2e 20 20 57 65 20 |n for th|is. We |
|00006260| 77 61 6e 74 20 74 6f 20 | 6c 6f 61 64 20 74 68 65 |want to |load the|
|00006270| 20 64 65 73 74 20 61 64 | 64 72 20 61 73 20 65 61 | dest ad|dr as ea|
|00006280| 72 6c 79 0d 09 61 73 20 | 70 6f 73 73 69 62 6c 65 |rly..as |possible|
|00006290| 20 73 6f 20 74 68 61 74 | 20 69 6e 73 74 72 75 63 | so that| instruc|
|000062a0| 74 69 6f 6e 20 66 65 74 | 63 68 69 6e 67 20 77 6f |tion fet|ching wo|
|000062b0| 6e 27 74 20 73 74 61 6c | 6c 2c 20 73 6f 20 77 65 |n't stal|l, so we|
|000062c0| 20 64 6f 20 74 68 69 73 | 0d 09 70 61 72 74 20 6f | do this|..part o|
|000062d0| 66 20 74 68 65 20 73 65 | 74 75 70 20 62 65 66 6f |f the se|tup befo|
|000062e0| 72 65 20 77 65 20 65 71 | 75 61 6c 69 7a 65 20 74 |re we eq|ualize t|
|000062f0| 68 65 20 73 74 61 63 6b | 20 2d 20 64 75 72 69 6e |he stack| - durin|
|00006300| 67 20 74 68 65 20 65 71 | 75 61 6c 69 7a 61 74 69 |g the eq|ualizati|
|00006310| 6f 6e 0d 09 6e 6f 74 68 | 69 6e 67 20 6e 65 65 64 |on..noth|ing need|
|00006320| 73 20 74 68 65 20 43 54 | 52 20 61 6e 79 77 61 79 |s the CT|R anyway|
|00006330| 2e 0d 09 0d 09 57 65 20 | 75 73 65 20 72 31 32 20 |.....We |use r12 |
|00006340| 66 6f 72 20 74 68 65 20 | 61 64 64 72 20 6f 66 20 |for the |addr of |
|00006350| 74 68 65 20 74 72 61 6e | 73 69 74 69 6f 6e 20 76 |the tran|sition v|
|00006360| 65 63 74 6f 72 20 69 74 | 73 65 6c 66 2c 20 61 73 |ector it|self, as|
|00006370| 20 49 4d 20 73 61 79 73 | 2e 0d 09 54 68 69 73 20 | IM says|...This |
|00006380| 61 6c 73 6f 20 77 6f 6e | 27 74 20 67 65 74 20 6d |also won|'t get m|
|00006390| 65 73 73 65 64 20 77 69 | 74 68 20 64 75 72 69 6e |essed wi|th durin|
|000063a0| 67 20 65 71 75 61 6c 69 | 7a 61 74 69 6f 6e 2e 0d |g equali|zation..|
|000063b0| 09 0d 09 57 65 20 73 65 | 74 20 75 70 20 72 31 32 |...We se|t up r12|
|000063c0| 20 61 6e 64 20 74 68 65 | 20 43 54 52 20 69 6e 20 | and the| CTR in |
|000063d0| 67 65 74 5f 74 72 61 6e | 73 69 74 69 6f 6e 5f 76 |get_tran|sition_v|
|000063e0| 65 63 74 6f 72 2c 20 61 | 73 20 77 65 6c 6c 20 61 |ector, a|s well a|
|000063f0| 73 20 72 65 73 6f 6c 76 | 69 6e 67 0d 09 74 68 65 |s resolv|ing..the|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.